Removed assert that doesn't typecheck and breaks debug MSVC build.
[oota-llvm.git] / lib / Transforms / Utils / LoopUnroll.cpp
index 0fee692a12ee422b8be6389db10b33603efa35b8..0ee2fee41dd1e8b4d78b9ab50867fe66977d3a41 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));