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:
e6c1b56
)
Fix warning of comparing different enums. NFC
author
Pete Cooper
<peter_cooper@apple.com>
Tue, 9 Jun 2015 23:33:35 +0000
(23:33 +0000)
committer
Pete Cooper
<peter_cooper@apple.com>
Tue, 9 Jun 2015 23:33:35 +0000
(23:33 +0000)
llvm-svn: 239443
llvm/lib/MC/MCSymbol.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCSymbol.cpp
b/llvm/lib/MC/MCSymbol.cpp
index
836d282
..
4484221
100644
(file)
--- a/
llvm/lib/MC/MCSymbol.cpp
+++ b/
llvm/lib/MC/MCSymbol.cpp
@@
-28,7
+28,7
@@
void *MCSymbol::operator new(size_t s, const StringMapEntry<bool> *Name,
// For safety, ensure that the alignment of a pointer is enough for an
// MCSymbol. This also ensures we don't need padding between the name and
// symbol.
- static_assert(AlignOf<MCSymbol>::Alignment <=
+ static_assert(
(unsigned)
AlignOf<MCSymbol>::Alignment <=
AlignOf<NameEntryStorageTy>::Alignment,
"Bad alignment of MCSymbol");
void *Storage = Ctx.allocate(Size, alignOf<NameEntryStorageTy>());