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:
7256f51
)
[Support] Add storage specifier for MachO::NListType.
author
Lang Hames
<lhames@gmail.com>
Fri, 29 Jul 2016 23:17:53 +0000
(23:17 +0000)
committer
Lang Hames
<lhames@gmail.com>
Fri, 29 Jul 2016 23:17:53 +0000
(23:17 +0000)
This should fix UB warnings from the sanitizer bots: LLD performs bit
manipulations on enums of this type, and these are UB if the underlying
storage type isn't specified.
llvm-svn: 277251
llvm/include/llvm/Support/MachO.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/MachO.h
b/llvm/include/llvm/Support/MachO.h
index
9a03722
..
ebaaa7e
100644
(file)
--- a/
llvm/include/llvm/Support/MachO.h
+++ b/
llvm/include/llvm/Support/MachO.h
@@
-302,7
+302,7
@@
namespace llvm {
N_EXT = 0x01
};
- enum NListType {
+ enum NListType
: uint8_t
{
// Constants for the "n_type & N_TYPE" llvm::MachO::nlist and
// llvm::MachO::nlist_64
N_UNDF = 0x0u,