summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/Expressions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-05 19:38:29 +0000
committerChris Lattner <sabre@nondot.org>2001-12-05 19:38:29 +0000
commitbe68833765d68ac3c847d055e5d0a8e1aee8ee5b (patch)
treea4c1e2cb2bdddff8cb9f26cf1ba1c7611aa3478b /llvm/lib/Analysis/Expressions.cpp
parentcd7fb504a5bd3da55fb914dc0f5438319a18a90d (diff)
downloadbcm5719-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.cpp3
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:
OpenPOWER on IntegriCloud