"fix" problems processing floating point expressions

llvm-svn: 1421
This commit is contained in:
Chris Lattner 2001-12-05 19:38:29 +00:00
parent cd7fb504a5
commit be68833765
1 changed files with 3 additions and 0 deletions

View File

@ -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: