Load & StoreInst no longer derive from MemAccessInst, so we don't have
[oota-llvm.git] / lib / Transforms / Scalar / GCSE.cpp
index dc6a345316b90a3107d0f449a44cfaeeb8964893..b4583e009631b597c131a0df2a2e0e274982ed09 100644 (file)
@@ -381,8 +381,6 @@ bool GCSE::TryToRemoveALoad(LoadInst *L1, LoadInst *L2) {
     return false;  // Neither instruction dominates the other one...
 
   BasicBlock *BB1 = L1->getParent(), *BB2 = L2->getParent();
-
-  assert(!L1->hasIndices());
   Value *LoadAddress = L1->getOperand(0);
 
   // L1 now dominates L2.  Check to see if the intervening instructions between