diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-16 22:29:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-16 22:29:37 +0000 |
| commit | 4cccad755516dff6ecff8e987b22748f01c3f373 (patch) | |
| tree | f4858dc2917cf344db2f6fc64d36631db01f9aed | |
| parent | 811bd412293b71acd70f111921b82677159ea551 (diff) | |
| download | bcm5719-llvm-4cccad755516dff6ecff8e987b22748f01c3f373.tar.gz bcm5719-llvm-4cccad755516dff6ecff8e987b22748f01c3f373.zip | |
Avoid !sized assertion failure if Ty is not a sized type
llvm-svn: 2933
| -rw-r--r-- | llvm/lib/Transforms/ExprTypeConvert.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/ExprTypeConvert.cpp b/llvm/lib/Transforms/ExprTypeConvert.cpp index eea8607ed08..d7caa2e86a9 100644 --- a/llvm/lib/Transforms/ExprTypeConvert.cpp +++ b/llvm/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... |

