-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The llvm function `get_requires()` can return either the Pattern in the requires clause or nullptr. However, our binding only accepted the first case, and this PR fixes that behavior by testing if the result of `axiom.requires` returned a pattern. If not, we return None instead of trying to convert None to a LLVM Pattern. A unit test was added to ensure this behavior was documented and tested.
- Loading branch information
1 parent
3c8e94f
commit 313aaba
Showing
2 changed files
with
13 additions
and
2 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