mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++ IR: Don't repeat a very similar predicate body
This commit is contained in:
@@ -59,7 +59,7 @@ cached private module Cached {
|
||||
}
|
||||
|
||||
private Instruction getNewInstruction(OldIR::Instruction instr) {
|
||||
result.getTag() = WrappedInstructionTag(instr)
|
||||
getOldInstruction(result) = instr
|
||||
}
|
||||
|
||||
private PhiInstruction getPhiInstruction(Function func, OldIR::IRBlock oldBlock,
|
||||
|
||||
@@ -59,7 +59,7 @@ cached private module Cached {
|
||||
}
|
||||
|
||||
private Instruction getNewInstruction(OldIR::Instruction instr) {
|
||||
result.getTag() = WrappedInstructionTag(instr)
|
||||
getOldInstruction(result) = instr
|
||||
}
|
||||
|
||||
private PhiInstruction getPhiInstruction(Function func, OldIR::IRBlock oldBlock,
|
||||
|
||||
Reference in New Issue
Block a user