Merge pull request #5696 from jbj/reapply-inconsistency-workaround

Revert "Revert "C++: Work around extractor issue CPP-383""
This commit is contained in:
Jonas Jensen
2021-04-23 14:49:32 +02:00
committed by GitHub
5 changed files with 43 additions and 5 deletions

View File

@@ -57,7 +57,8 @@ private Element getRealParent(Expr expr) { result = expr.getParent() }
*/
predicate isIRConstant(Expr expr) { exists(expr.getValue()) }
// Pulled out to work around QL-796
// Pulled out for performance. See
// https://github.com/github/codeql-coreql-team/issues/1044.
private predicate isOrphan(Expr expr) { not exists(getRealParent(expr)) }
/**