File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
cpp/ql/lib/experimental/semmle/code/cpp/semantic Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,8 @@ module SemanticExprConfig {
22
22
23
23
/** Holds if this instruction converts a value of type `tFrom` to a value of type `tTo`. */
24
24
predicate converts ( SemType tFrom , SemType tTo ) {
25
- exists ( IR:: ConvertInstruction convert |
26
- this = convert and
27
- tFrom = getSemanticType ( convert .getUnary ( ) .getResultIRType ( ) ) and
28
- tTo = getSemanticType ( convert .getResultIRType ( ) )
29
- )
30
- or
31
- exists ( IR:: CopyValueInstruction copy |
32
- this = copy and
33
- tFrom = getSemanticType ( copy .getUnary ( ) .getResultIRType ( ) ) and
34
- tTo = getSemanticType ( copy .getResultIRType ( ) )
35
- )
25
+ tFrom = getSemanticType ( this .getUnary ( ) .getResultIRType ( ) ) and
26
+ tTo = getSemanticType ( this .getResultIRType ( ) )
36
27
}
37
28
}
38
29
You can’t perform that action at this time.
0 commit comments