forked from OSchip/llvm-project
"fix" problems processing floating point expressions
llvm-svn: 1421
This commit is contained in:
parent
cd7fb504a5
commit
be68833765
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue