Use cast<> instead of unchecked dyn_cast

llvm-svn: 209310
This commit is contained in:
Matt Arsenault 2014-05-21 18:03:59 +00:00
parent 6eae1e6bbf
commit 03df7eeda1
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ SDValue AMDGPUTargetLowering::LowerGlobalAddress(AMDGPUMachineFunction* MFI,
unsigned Size = TD->getTypeAllocSize(EltType);
unsigned Alignment = TD->getPrefTypeAlignment(EltType);
const GlobalVariable *Var = dyn_cast<GlobalVariable>(GV);
const GlobalVariable *Var = cast<GlobalVariable>(GV);
const Constant *Init = Var->getInitializer();
int FI = FrameInfo->CreateStackObject(Size, Alignment, false);
SDValue InitPtr = DAG.getFrameIndex(FI,