mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Use cast instead of dyn_cast.
Update test to use multiple return value directly, instead of relying on -sretpromotion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -448,8 +448,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
|
||||
// Multiple return values.
|
||||
for (Value::use_iterator RUI = TheCall->use_begin(),
|
||||
RUE = TheCall->use_end(); RUI != RUE; ) {
|
||||
GetResultInst *GR = dyn_cast<GetResultInst>(RUI++);
|
||||
assert (GR && "Invalid Call instruction use!");
|
||||
GetResultInst *GR = cast<GetResultInst>(RUI++);
|
||||
Value *RV = R->getOperand(GR->getIndex());
|
||||
GR->replaceAllUsesWith(RV);
|
||||
GR->eraseFromParent();
|
||||
|
||||
Reference in New Issue
Block a user