Rename getABITypeSize to getTypePaddedSize, as
[oota-llvm.git] / lib / Analysis / ConstantFolding.cpp
index ea559c1010eac0927d1adb28a8e54889622c3bdd..d4457b30318fcd631bb45f8226cd327aad724253 100644 (file)
@@ -76,7 +76,7 @@ static bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV,
         Offset += TD.getStructLayout(ST)->getElementOffset(CI->getZExtValue());
       } else {
         const SequentialType *SQT = cast<SequentialType>(*GTI);
-        Offset += TD.getABITypeSize(SQT->getElementType())*CI->getSExtValue();
+        Offset += TD.getTypePaddedSize(SQT->getElementType())*CI->getSExtValue();
       }
     }
     return true;