From be68833765d68ac3c847d055e5d0a8e1aee8ee5b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Dec 2001 19:38:29 +0000 Subject: [PATCH] "fix" problems processing floating point expressions llvm-svn: 1421 --- llvm/lib/Analysis/Expressions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp index d0ab480772e8..b44b8ff162e0 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: