From: Devang Patel Date: Wed, 23 Apr 2008 20:18:29 +0000 (+0000) Subject: Check type instead of no. of operands. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6829157f49641c19bc77e7ca5ffc16f2d91c74f2;p=oota-llvm.git Check type instead of no. of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index ff494ce8af4..435be0c05cd 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -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(TheCall->getType())) { // Multiple return values. while (!TheCall->use_empty()) { GetResultInst *GR = cast(TheCall->use_back());