diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-18 16:26:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-18 16:26:24 +0000 |
commit | b7daa84a3500105a9e5245b463155fcb15ed6730 (patch) | |
tree | 088995b7d317153447d4f711b3a8e1457386f5f7 /lib/VMCore/Constants.cpp | |
parent | a0d9de0b66b022bb48461476a3fedc1fb8fe97b3 (diff) | |
download | external_llvm-b7daa84a3500105a9e5245b463155fcb15ed6730.zip external_llvm-b7daa84a3500105a9e5245b463155fcb15ed6730.tar.gz external_llvm-b7daa84a3500105a9e5245b463155fcb15ed6730.tar.bz2 |
this doesn't need dynamic_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Constants.cpp')
-rw-r--r-- | lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 9c1377d..262595f 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -580,7 +580,7 @@ Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { } unsigned ConstantExpr::getPredicate() const { assert(getOpcode() == Instruction::FCmp || getOpcode() == Instruction::ICmp); - return dynamic_cast<const CompareConstantExpr*>(this)->predicate; + return ((const CompareConstantExpr*)this)->predicate; } Constant *ConstantExpr::getShl(Constant *C1, Constant *C2) { return get(Instruction::Shl, C1, C2); |