File tree Expand file tree Collapse file tree 3 files changed +77
-70
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation Expand file tree Collapse file tree 3 files changed +77
-70
lines changed Original file line number Diff line number Diff 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 ( ) , "," )
Original file line number Diff line number Diff 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 ( ) , "," )
You can’t perform that action at this time.
0 commit comments