mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Use cast<> instead of unchecked dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5dd4b9f43b
commit
49323774b4
@ -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