File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3208,6 +3208,13 @@ class TranslatedBuiltInOperation extends TranslatedNonConstantExpr {
3208
3208
3209
3209
final override Instruction getResult ( ) { result = this .getInstruction ( OnlyInstructionTag ( ) ) }
3210
3210
3211
+ /**
3212
+ * Gets the rnk'th (0-indexed) child for which a `TranslatedElement` exists.
3213
+ *
3214
+ * We use this predicate to filter out `TypeName` expressions that sometimes
3215
+ * occur in builtin operations since the IR doesn't have an instruction to
3216
+ * represent a reference to a type.
3217
+ */
3211
3218
private TranslatedElement getRankedChild ( int rnk ) {
3212
3219
result = rank [ rnk + 1 ] ( int id , TranslatedElement te | te = this .getChild ( id ) | te order by id )
3213
3220
}
You can’t perform that action at this time.
0 commit comments