diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
| commit | 8f191129239552b876f2c6717fae9619a7701a03 (patch) | |
| tree | 7ecdf5b84fc94a779ad69fd6f665564d24258f2c /llvm/lib/Analysis/Expressions.cpp | |
| parent | 4b717c0edc082166e85181fa70e76b17669aebe2 (diff) | |
| download | bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.tar.gz bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.zip | |
Add more support for new style casts
Convert more code to use them
llvm-svn: 695
Diffstat (limited to 'llvm/lib/Analysis/Expressions.cpp')
| -rw-r--r-- | llvm/lib/Analysis/Expressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp index a6f889f698d..8c9d75f2bd2 100644 --- a/llvm/lib/Analysis/Expressions.cpp +++ b/llvm/lib/Analysis/Expressions.cpp @@ -225,7 +225,7 @@ ExprType analysis::ClassifyExpression(Value *Expr) { case Value::MethodArgumentVal: // nothing known, return variable itself return Expr; case Value::ConstantVal: // Constant value, just return constant - ConstPoolVal *CPV = Expr->castConstantAsserting(); + ConstPoolVal *CPV = cast<ConstPoolVal>(Expr); if (CPV->getType()->isIntegral()) { // It's an integral constant! ConstPoolInt *CPI = (ConstPoolInt*)Expr; return ExprType(CPI->equalsInt(0) ? 0 : CPI); |

