[llvm] r268249 - Fixed signed/unsigned comparison warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 09:45:02 PDT 2016
Author: rksimon
Date: Mon May 2 11:45:02 2016
New Revision: 268249
URL: http://llvm.org/viewvc/llvm-project?rev=268249&view=rev
Log:
Fixed signed/unsigned comparison warning.
Modified:
llvm/trunk/lib/IR/DebugInfoMetadata.cpp
Modified: llvm/trunk/lib/IR/DebugInfoMetadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfoMetadata.cpp?rev=268249&r1=268248&r2=268249&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfoMetadata.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfoMetadata.cpp Mon May 2 11:45:02 2016
@@ -292,7 +292,7 @@ DICompositeType *DICompositeType::buildO
Flags);
Metadata *Ops[] = {File, Scope, Name, BaseType,
Elements, VTableHolder, TemplateParams, &Identifier};
- assert(std::end(Ops) - std::begin(Ops) == CT->getNumOperands() &&
+ assert((std::end(Ops) - std::begin(Ops)) == (int)CT->getNumOperands() &&
"Mismatched number of operands");
for (unsigned I = 0, E = CT->getNumOperands(); I != E; ++I)
if (Ops[I] != CT->getOperand(I))
More information about the llvm-commits
mailing list