mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Use cast<> instead of unchecked dyn_cast
llvm-svn: 209310
This commit is contained in:
parent
d04ccc546a
commit
90ef7a5eaa
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user