Skip to content

Commit

Permalink
C++: Do not generate IR for functions with multiple entry points in d…
Browse files Browse the repository at this point in the history
…ifferent locations
  • Loading branch information
jketema committed Oct 15, 2024
1 parent 50ec254 commit 56efff9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ private predicate isInvalidFunction(Function func) {
expr.getEnclosingFunction() = func and
not exists(expr.getType())
)
or
exists(Location l1, Location l2 |
l1 = func.getEntryPoint().getLocation() and l2 = func.getEntryPoint().getLocation()
|
l1 != l2
)
}

/**
Expand Down

0 comments on commit 56efff9

Please sign in to comment.