diff options
Diffstat (limited to 'llvm/unittests/IR/ConstantsTest.cpp')
| -rw-r--r-- | llvm/unittests/IR/ConstantsTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ConstantsTest.cpp b/llvm/unittests/IR/ConstantsTest.cpp index ccffa50bf13..cf67e55b32a 100644 --- a/llvm/unittests/IR/ConstantsTest.cpp +++ b/llvm/unittests/IR/ConstantsTest.cpp @@ -473,8 +473,7 @@ TEST(ConstantsTest, BitcastToGEP) { GlobalValue::ExternalLinkage, nullptr); auto *PtrTy = PointerType::get(i32, 0); auto *C = ConstantExpr::getBitCast(G, PtrTy); - ASSERT_EQ(dyn_cast<ConstantExpr>(C)->getOpcode(), - Instruction::BitCast); + ASSERT_EQ(cast<ConstantExpr>(C)->getOpcode(), Instruction::BitCast); } } // end anonymous namespace |

