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 {
32083208
32093209 final override Instruction getResult ( ) { result = this .getInstruction ( OnlyInstructionTag ( ) ) }
32103210
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+ */
32113218 private TranslatedElement getRankedChild ( int rnk ) {
32123219 result = rank [ rnk + 1 ] ( int id , TranslatedElement te | te = this .getChild ( id ) | te order by id )
32133220 }
You can’t perform that action at this time.
0 commit comments