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());