Remove some dead, commented out code Duncan spotted in review.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 14 Sep 2012 10:18:53 +0000 (10:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 14 Sep 2012 10:18:53 +0000 (10:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index 0534d9f922e657e332c31cae7a0a3e9b565f37b4..be7839e4c3624608c1a7f00f52db368b9c9c926f 100644 (file)
@@ -546,8 +546,6 @@ private:
   }
 
   bool visitGetElementPtrInst(GetElementPtrInst &GEPI) {
-    //unsigned IntPtrWidth = TD->getPointerSizeInBits();
-    //assert(IntPtrWidth == Offset.getBitWidth());
     uint64_t GEPOffset;
     if (!computeConstantGEPOffset(GEPI, GEPOffset))
       return markAsEscaping(GEPI);
@@ -815,8 +813,6 @@ private:
     if (GEPI.use_empty())
       return markAsDead(GEPI);
 
-    //unsigned IntPtrWidth = TD->getPointerSizeInBits();
-    //assert(IntPtrWidth == Offset.getBitWidth());
     uint64_t GEPOffset;
     if (!computeConstantGEPOffset(GEPI, GEPOffset))
       llvm_unreachable("Unable to compute constant offset for use");