diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-05 19:38:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-05 19:38:29 +0000 |
| commit | be68833765d68ac3c847d055e5d0a8e1aee8ee5b (patch) | |
| tree | a4c1e2cb2bdddff8cb9f26cf1ba1c7611aa3478b /llvm/lib/Analysis/Expressions.cpp | |
| parent | cd7fb504a5bd3da55fb914dc0f5438319a18a90d (diff) | |
| download | bcm5719-llvm-be68833765d68ac3c847d055e5d0a8e1aee8ee5b.tar.gz bcm5719-llvm-be68833765d68ac3c847d055e5d0a8e1aee8ee5b.zip | |
"fix" problems processing floating point expressions
llvm-svn: 1421
Diffstat (limited to 'llvm/lib/Analysis/Expressions.cpp')
| -rw-r--r-- | llvm/lib/Analysis/Expressions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp index d0ab480772e..b44b8ff162e 100644 --- a/llvm/lib/Analysis/Expressions.cpp +++ b/llvm/lib/Analysis/Expressions.cpp @@ -221,6 +221,9 @@ static inline ExprType negate(const ExprType &E, Value *V) { // ExprType analysis::ClassifyExpression(Value *Expr) { assert(Expr != 0 && "Can't classify a null expression!"); + if (Expr->getType() == Type::FloatTy || Expr->getType() == Type::DoubleTy) + return Expr; // FIXME: Can't handle FP expressions + switch (Expr->getValueType()) { case Value::InstructionVal: break; // Instruction... hmmm... investigate. case Value::TypeVal: case Value::BasicBlockVal: |

