From: Matt Arsenault Date: Wed, 21 May 2014 18:03:59 +0000 (+0000) Subject: Use cast<> instead of unchecked dyn_cast X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03df7eeda1c3f1df46f1ff68526964c81012c018;p=platform%2Fupstream%2Fllvm.git Use cast<> instead of unchecked dyn_cast llvm-svn: 209310 --- diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp index 04924cf..008e131 100644 --- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp @@ -591,7 +591,7 @@ SDValue AMDGPUTargetLowering::LowerGlobalAddress(AMDGPUMachineFunction* MFI, unsigned Size = TD->getTypeAllocSize(EltType); unsigned Alignment = TD->getPrefTypeAlignment(EltType); - const GlobalVariable *Var = dyn_cast(GV); + const GlobalVariable *Var = cast(GV); const Constant *Init = Var->getInitializer(); int FI = FrameInfo->CreateStackObject(Size, Alignment, false); SDValue InitPtr = DAG.getFrameIndex(FI,