Skip to content

Commit 6e38105

Browse files
committed
C++: Fix implicit 'this'.
1 parent 4d029ac commit 6e38105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module SemanticExprConfig {
7979
string toString() { result = this.getUnconverted().toString() }
8080

8181
/** Gets the basic block of this expression. */
82-
IR::IRBlock getBlock() { result = getInstruction(0).getBlock() }
82+
IR::IRBlock getBlock() { result = this.getUnconverted().getBlock() }
8383

8484
/** Gets the unconverted instruction associated with this expression. */
8585
IR::Instruction getUnconverted() { result = this.getInstruction(0) }

0 commit comments

Comments
 (0)