C++: Do not generate IR for functions with multiple entry points in different locations

This commit is contained in:
Jeroen Ketema
2024-10-08 16:11:27 +02:00
parent 8cfd19cf2f
commit 1a830cdf14

View File

@@ -196,6 +196,8 @@ private predicate isInvalidFunction(Function func) {
expr.getEnclosingFunction() = func and
not exists(expr.getType())
)
or
count(func.getEntryPoint().getLocation()) > 1
}
/**