-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #1017: Compiler issues an invalid-bounds error message for an…
… out-of-scope variable. (#1031) * Fix for the crash during CFG construction when CFGLifetimeEnds elements are added to the CFG. * Make VariableOccurrenceCount take a ValueDecl rather than DeclRefExpr argument * Removing checked pointers that are no longer in scope from ObservedBounds. Also removing expressions that refer to out-of-scope variables from AvailableExpressions. * Added a test case to test the modifications to equivalent expressions when variables go out of scope within a basic block. * Fix for a crash on Windows caused by an iterator access out of range. If one iterates through a loop and removes elements from it at the same time, the end of the iterator has to be re-evaluated in each iteration. * Incorporated review comments. * Incorporated review comments. Co-authored-by: kakje <[email protected]>
- Loading branch information
Showing
10 changed files
with
498 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.