diff options
author | patacca <patacca@autistici.org> | 2021-06-08 15:24:21 +0200 |
---|---|---|
committer | patacca <patacca@autistici.org> | 2021-06-08 15:28:20 +0200 |
commit | be5e2fc7bf781c7fc079943552ea1b519f45c815 (patch) | |
tree | 83a63761578eb5b68a6d71b738116f17ef7ea214 /polly/unittests | |
parent | e772216e708937988c039420d2c559568f91ae27 (diff) | |
download | llvm-be5e2fc7bf781c7fc079943552ea1b519f45c815.zip llvm-be5e2fc7bf781c7fc079943552ea1b519f45c815.tar.gz llvm-be5e2fc7bf781c7fc079943552ea1b519f45c815.tar.bz2 |
[Polly][Isl] Removing nullptr constructor from C++ bindings. NFC.
[Polly][Isl] Removing nullptr constructor from C++ bindings. NFC.
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.
Changes made:
- Removed `std::nullptr_t` constructor from all the classes in the isl C++ bindings.
- `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/a7e00bea38f251a4bcf5c2c6ce5fa7ee5f661528
Reviewed By: Meinersbur
Differential Revision: https://reviews.llvm.org/D103751
Diffstat (limited to 'polly/unittests')
-rw-r--r-- | polly/unittests/DeLICM/DeLICMTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/unittests/DeLICM/DeLICMTest.cpp b/polly/unittests/DeLICM/DeLICMTest.cpp index 3e6b6f0..eaa37ee 100644 --- a/polly/unittests/DeLICM/DeLICMTest.cpp +++ b/polly/unittests/DeLICM/DeLICMTest.cpp @@ -80,13 +80,13 @@ typedef struct { isl::union_set parseSetOrNull(isl_ctx *Ctx, const char *Str) { if (!Str) - return nullptr; + return {}; return isl::union_set(Ctx, Str); } isl::union_map parseMapOrNull(isl_ctx *Ctx, const char *Str) { if (!Str) - return nullptr; + return {}; return isl::union_map(Ctx, Str); } |