Skip to content

Commit 8894fba

Browse files
committed
C++: Sync identical files.
1 parent 950d70f commit 8894fba

File tree

3 files changed

+77
-70
lines changed

3 files changed

+77
-70
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/Instruction.qll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,19 +2162,21 @@ class ChiInstruction extends Instruction {
21622162
*
21632163
* Since both the address of `a` and `b` reach `p` at `*p = 5` the IR alias
21642164
* analysis will create a region that contains both `a` and `b`. The region
2165-
* containing both `a` and `b` are initialized by an `InitializeGroup`
2165+
* containing both `a` and `b` are initialized by an `UninitializedGroup`
21662166
* instruction in the entry block of the enclosing function.
21672167
*/
2168-
class InitializeGroupInstruction extends Instruction {
2169-
InitializeGroupInstruction() { this.getOpcode() instanceof Opcode::InitializeGroup }
2168+
class UninitializedGroupInstruction extends Instruction {
2169+
UninitializedGroupInstruction() { this.getOpcode() instanceof Opcode::UninitializedGroup }
21702170

21712171
/**
21722172
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
21732173
* Note: Allocations that are not represented as `IRVariable`s (such as
21742174
* dynamic allocations) are not returned by this predicate even if this
21752175
* instruction initializes such memory.
21762176
*/
2177-
final IRVariable getAnIRVariable() { result = Construction::getAnInitializeGroupVariable(this) }
2177+
final IRVariable getAnIRVariable() {
2178+
result = Construction::getAnUninitializedGroupVariable(this)
2179+
}
21782180

21792181
final override string getImmediateString() {
21802182
result = strictconcat(this.getAnIRVariable().toString(), ",")

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,19 +2162,21 @@ class ChiInstruction extends Instruction {
21622162
*
21632163
* Since both the address of `a` and `b` reach `p` at `*p = 5` the IR alias
21642164
* analysis will create a region that contains both `a` and `b`. The region
2165-
* containing both `a` and `b` are initialized by an `InitializeGroup`
2165+
* containing both `a` and `b` are initialized by an `UninitializedGroup`
21662166
* instruction in the entry block of the enclosing function.
21672167
*/
2168-
class InitializeGroupInstruction extends Instruction {
2169-
InitializeGroupInstruction() { this.getOpcode() instanceof Opcode::InitializeGroup }
2168+
class UninitializedGroupInstruction extends Instruction {
2169+
UninitializedGroupInstruction() { this.getOpcode() instanceof Opcode::UninitializedGroup }
21702170

21712171
/**
21722172
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
21732173
* Note: Allocations that are not represented as `IRVariable`s (such as
21742174
* dynamic allocations) are not returned by this predicate even if this
21752175
* instruction initializes such memory.
21762176
*/
2177-
final IRVariable getAnIRVariable() { result = Construction::getAnInitializeGroupVariable(this) }
2177+
final IRVariable getAnIRVariable() {
2178+
result = Construction::getAnUninitializedGroupVariable(this)
2179+
}
21782180

21792181
final override string getImmediateString() {
21802182
result = strictconcat(this.getAnIRVariable().toString(), ",")

0 commit comments

Comments
 (0)