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:
3fb2ddd
)
Avoid !sized assertion failure if Ty is not a sized type
author
Chris Lattner
<sabre@nondot.org>
Tue, 16 Jul 2002 22:29:37 +0000
(22:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 16 Jul 2002 22:29:37 +0000
(22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2933
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 eea8607ed08aea3ffb822b58b362ca80d3d3c940..d7caa2e86a96813de9996cbd93bacc138d6a04c1 100644
(file)
--- a/
lib/Transforms/ExprTypeConvert.cpp
+++ b/
lib/Transforms/ExprTypeConvert.cpp
@@
-756,7
+756,8
@@
static bool OperandConvertableToType(User *U, Value *V, const Type *Ty,
}
// Must move the same amount of data...
- if (TD.getTypeSize(ElTy) != TD.getTypeSize(I->getOperand(0)->getType()))
+ if (!ElTy->isSized() ||
+ TD.getTypeSize(ElTy) != TD.getTypeSize(I->getOperand(0)->getType()))
return false;
// Can convert store if the incoming value is convertable...