llvm.org GIT mirror llvm / 4932377
Use cast<> instead of unchecked dyn_cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209310 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
590590 unsigned Size = TD->getTypeAllocSize(EltType);
591591 unsigned Alignment = TD->getPrefTypeAlignment(EltType);
592592
593 const GlobalVariable *Var = dyn_cast(GV);
593 const GlobalVariable *Var = cast(GV);
594594 const Constant *Init = Var->getInitializer();
595595 int FI = FrameInfo->CreateStackObject(Size, Alignment, false);
596596 SDValue InitPtr = DAG.getFrameIndex(FI,