File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/ql/lib/semmle/code/cpp/ir/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ private int getTypeSizeWorkaround(Type type) {
11
11
exists ( Type unspecifiedType |
12
12
unspecifiedType = type .getUnspecifiedType ( ) and
13
13
(
14
- unspecifiedType instanceof FunctionReferenceType and
14
+ ( unspecifiedType instanceof FunctionReferenceType or unspecifiedType instanceof RoutineType ) and
15
15
result = getPointerSize ( )
16
16
or
17
17
exists ( PointerToMemberType ptmType |
@@ -176,7 +176,7 @@ private IRType getIRTypeForPRValue(Type type) {
176
176
isPointerIshType ( unspecifiedType ) and
177
177
result .( IRAddressType ) .getByteSize ( ) = getTypeSize ( unspecifiedType )
178
178
or
179
- unspecifiedType instanceof FunctionPointerIshType and
179
+ ( unspecifiedType instanceof FunctionPointerIshType or unspecifiedType instanceof RoutineType ) and
180
180
result .( IRFunctionAddressType ) .getByteSize ( ) = getTypeSize ( type )
181
181
or
182
182
unspecifiedType instanceof VoidType and result instanceof IRVoidType
You can’t perform that action at this time.
0 commit comments