From 354b742df5b053f829fe851d0f4fc42a9d16bb59 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<> llvm-svn: 218085 --- 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));