projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ddad6f
)
Fix bug
author
Chris Lattner
<sabre@nondot.org>
Tue, 14 Jan 2003 19:04:43 +0000
(19:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 14 Jan 2003 19:04:43 +0000
(19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5264
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/ExprTypeConvert.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/ExprTypeConvert.cpp
b/lib/Transforms/ExprTypeConvert.cpp
index 85f9bb0714cf09b8d657fbe17f80c73bcf329fb6..dee0c2026e863791361e9c9af2f8ce659dde42be 100644
(file)
--- 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);