From 76f0a9224fce915465b70dea6ccca548974cf92b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 18 Sep 2014 22:28:56 +0000 Subject: [PATCH] Use cast<> instead of unchecked dyn_cast<> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218085 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/DataLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/DataLayout.cpp b/lib/IR/DataLayout.cpp index 38873538670..7496268b409 100644 --- a/lib/IR/DataLayout.cpp +++ b/lib/IR/DataLayout.cpp @@ -641,7 +641,7 @@ unsigned DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const { ? getPointerABIAlignment(0) : getPointerPrefAlignment(0)); case Type::PointerTyID: { - unsigned AS = dyn_cast(Ty)->getAddressSpace(); + unsigned AS = cast(Ty)->getAddressSpace(); return (abi_or_pref ? getPointerABIAlignment(AS) : getPointerPrefAlignment(AS));