File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -995,9 +995,8 @@ class ConstantInstruction extends ConstantValueInstruction {
995
995
*/
996
996
class IntegerConstantInstruction extends ConstantInstruction {
997
997
IntegerConstantInstruction ( ) {
998
- exists ( IRType resultType |
999
- resultType = this .getResultIRType ( ) and
1000
- ( resultType instanceof IRIntegerType or resultType instanceof IRBooleanType )
998
+ exists ( IRType resultType | resultType = this .getResultIRType ( ) |
999
+ resultType instanceof IRIntegerType or resultType instanceof IRBooleanType
1001
1000
)
1002
1001
}
1003
1002
}
@@ -1009,6 +1008,17 @@ class FloatConstantInstruction extends ConstantInstruction {
1009
1008
FloatConstantInstruction ( ) { this .getResultIRType ( ) instanceof IRFloatingPointType }
1010
1009
}
1011
1010
1011
+ /**
1012
+ * An instruction whose result is a constant value of a pointer type.
1013
+ */
1014
+ class PointerConstantInstruction extends ConstantInstruction {
1015
+ PointerConstantInstruction ( ) {
1016
+ exists ( IRType resultType | resultType = this .getResultIRType ( ) |
1017
+ resultType instanceof IRAddressType or resultType instanceof IRFunctionAddressType
1018
+ )
1019
+ }
1020
+ }
1021
+
1012
1022
/**
1013
1023
* An instruction whose result is the address of a string literal.
1014
1024
*/
You can’t perform that action at this time.
0 commit comments