1
0
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:
Devang Patel 2008-04-23 20:18:29 +00:00
parent 6de65a742d
commit 88251a96f1

View File

@ -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());