Skip to content

Commit 17d6359

Browse files
committed
Fix warning of comparing different enums. NFC
llvm-svn: 239443
1 parent e6c1b56 commit 17d6359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/MC/MCSymbol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void *MCSymbol::operator new(size_t s, const StringMapEntry<bool> *Name,
2828
// For safety, ensure that the alignment of a pointer is enough for an
2929
// MCSymbol. This also ensures we don't need padding between the name and
3030
// symbol.
31-
static_assert(AlignOf<MCSymbol>::Alignment <=
31+
static_assert((unsigned)AlignOf<MCSymbol>::Alignment <=
3232
AlignOf<NameEntryStorageTy>::Alignment,
3333
"Bad alignment of MCSymbol");
3434
void *Storage = Ctx.allocate(Size, alignOf<NameEntryStorageTy>());

0 commit comments

Comments
 (0)