From: Chris Lattner Date: Thu, 13 Dec 2001 00:45:06 +0000 (+0000) Subject: Some programs are using BB's as values, until we resolve this. Disable the assert X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=481fafe67d8c9eb387a0b3ad5142e455ca943109;p=oota-llvm.git Some programs are using BB's as values, until we resolve this. Disable the assert git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1448 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/Expressions.cpp b/lib/Analysis/Expressions.cpp index b44b8ff162e..a35e37a9630 100644 --- a/lib/Analysis/Expressions.cpp +++ b/lib/Analysis/Expressions.cpp @@ -228,7 +228,9 @@ ExprType analysis::ClassifyExpression(Value *Expr) { case Value::InstructionVal: break; // Instruction... hmmm... investigate. case Value::TypeVal: case Value::BasicBlockVal: case Value::MethodVal: case Value::ModuleVal: default: - assert(0 && "Unexpected expression type to classify!"); + //assert(0 && "Unexpected expression type to classify!"); + cerr << "Bizarre thing to expr classify: " << Expr << endl; + return Expr; case Value::GlobalVariableVal: // Global Variable & Method argument: case Value::MethodArgumentVal: // nothing known, return variable itself return Expr;