diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-14 19:04:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-14 19:04:43 +0000 |
commit | 408e72df5067408acdab897f03c9d665089f9971 (patch) | |
tree | 8fea321dba63ab18035c939404c1afe083dededa /lib/Transforms/ExprTypeConvert.cpp | |
parent | 3ddad6f277a8c85c031a3a051ded4ed6da806395 (diff) |
Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/ExprTypeConvert.cpp')
-rw-r--r-- | lib/Transforms/ExprTypeConvert.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 85f9bb0714..dee0c2026e 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -274,6 +274,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty, // if (GEP->getNumOperands() == 2 && GEP->getOperand(1)->getType() == Type::LongTy && + PTy->getElementType()->isSized() && TD.getTypeSize(PTy->getElementType()) == TD.getTypeSize(GEP->getType()->getElementType())) { const PointerType *NewSrcTy = PointerType::get(PVTy); |