diff options
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 01aedda..1288674 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -72,8 +72,8 @@ static bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, // N = N + Offset Offset += TD.getStructLayout(ST)->getElementOffset(CI->getZExtValue()); } else { - const SequentialType *ST = cast<SequentialType>(*GTI); - Offset += TD.getTypeSize(ST->getElementType())*CI->getSExtValue(); + const SequentialType *SQT = cast<SequentialType>(*GTI); + Offset += TD.getTypeSize(SQT->getElementType())*CI->getSExtValue(); } } return true; |