projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1221af9
)
[clang][Interp][NFC] Initialize constants as ~0u
author
Timm Bäder
<tbaeder@redhat.com>
Wed, 18 Jan 2023 14:10:40 +0000
(15:10 +0100)
committer
Timm Bäder
<tbaeder@redhat.com>
Thu, 19 Jan 2023 08:22:57 +0000
(09:22 +0100)
clang/lib/AST/Interp/Pointer.h
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/Pointer.h
b/clang/lib/AST/Interp/Pointer.h
index
44c4856
..
c062831
100644
(file)
--- a/
clang/lib/AST/Interp/Pointer.h
+++ b/
clang/lib/AST/Interp/Pointer.h
@@
-60,8
+60,8
@@
enum PrimType : unsigned;
/// Base
class Pointer {
private:
- static constexpr unsigned PastEndMark =
(unsigned)-1
;
- static constexpr unsigned RootPtrMark =
(unsigned)-1
;
+ static constexpr unsigned PastEndMark =
~0u
;
+ static constexpr unsigned RootPtrMark =
~0u
;
public:
Pointer() {}