Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2758f commit 4602a8aCopy full SHA for 4602a8a
1 file changed
cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll
@@ -22,17 +22,8 @@ module SemanticExprConfig {
22
23
/** Holds if this instruction converts a value of type `tFrom` to a value of type `tTo`. */
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
+ tFrom = getSemanticType(this.getUnary().getResultIRType()) and
+ tTo = getSemanticType(this.getResultIRType())
36
}
37
38
0 commit comments