From be1349596dffa7da53f0262c09b7f5b217b906de Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Tue, 9 Jun 2015 23:33:35 +0000 Subject: [PATCH] Fix warning of comparing different enums. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239443 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCSymbol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp index 836d28294f5..44842213280 100644 --- a/lib/MC/MCSymbol.cpp +++ b/lib/MC/MCSymbol.cpp @@ -28,7 +28,7 @@ void *MCSymbol::operator new(size_t s, const StringMapEntry *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::Alignment <= + static_assert((unsigned)AlignOf::Alignment <= AlignOf::Alignment, "Bad alignment of MCSymbol"); void *Storage = Ctx.allocate(Size, alignOf()); -- 2.34.1