mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Check type instead of no. of operands.
llvm-svn: 50179
This commit is contained in:
parent
6de65a742d
commit
88251a96f1
@ -456,7 +456,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
|
||||
// uses of the returned value.
|
||||
if (!TheCall->use_empty()) {
|
||||
ReturnInst *R = Returns[0];
|
||||
if (R->getNumOperands() > 1) {
|
||||
if (isa<StructType>(TheCall->getType())) {
|
||||
// Multiple return values.
|
||||
while (!TheCall->use_empty()) {
|
||||
GetResultInst *GR = cast<GetResultInst>(TheCall->use_back());
|
||||
|
Loading…
Reference in New Issue
Block a user