diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-04 21:45:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-04 21:45:28 +0000 |
commit | 941ab37ea883a6c3defea96fd40c41471bd6f6ab (patch) | |
tree | 070515ac515a1a9cdacba2be8b66c00c96615760 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | ea4cb89d349a19c97f85ad1b653e4b89a8942e33 (diff) | |
download | bcm5719-llvm-941ab37ea883a6c3defea96fd40c41471bd6f6ab.tar.gz bcm5719-llvm-941ab37ea883a6c3defea96fd40c41471bd6f6ab.zip |
Use cast instead of dyn_cast.
Update test to use multiple return value directly, instead of relying on -sretpromotion.
llvm-svn: 47907
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 6dda6d3313a..79b37003102 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -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(); |