Removed assert that doesn't typecheck and breaks debug MSVC build.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 1 Feb 2015 08:46:20 +0000 (08:46 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 1 Feb 2015 08:46:20 +0000 (08:46 +0000)
llvm-svn: 227717

llvm/lib/Transforms/Utils/LoopUnroll.cpp

index 0fee692..0ee2fee 100644 (file)
@@ -556,7 +556,6 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
 const MDNode *llvm::GetUnrollMetadata(const MDNode *LoopID, StringRef Name) {
   // First operand should refer to the loop id itself.
   assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
-  assert(LoopID->getOperand(0) == LoopID && "invalid loop id");
 
   for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) {
     const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i));