aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-04-23 20:18:29 +0000
committerDevang Patel <dpatel@apple.com>2008-04-23 20:18:29 +0000
commit819d91a9ef1abfcd87949608831af0234c47cc05 (patch)
treee903511c8c61a9b3559880733d7969d6ae196196 /lib/Transforms
parentdecb8c0fc32d5ecd2fcda343653483075a3f8797 (diff)
downloadexternal_llvm-819d91a9ef1abfcd87949608831af0234c47cc05.zip
external_llvm-819d91a9ef1abfcd87949608831af0234c47cc05.tar.gz
external_llvm-819d91a9ef1abfcd87949608831af0234c47cc05.tar.bz2
Check type instead of no. of operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index ff494ce..435be0c 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<StructType>(TheCall->getType())) {
// Multiple return values.
while (!TheCall->use_empty()) {
GetResultInst *GR = cast<GetResultInst>(TheCall->use_back());