summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit8f83081fea05f1a421bd2545f5b1cdc8d4f4af8f (patch)
tree3cc35150f233b0f87f17ee4993ad7c9ef9383b1f /llvm
parentdd43aeee54c15d2ce2a8cf612e8c1e59c2492c64 (diff)
downloadbcm5719-llvm-8f83081fea05f1a421bd2545f5b1cdc8d4f4af8f.tar.gz
bcm5719-llvm-8f83081fea05f1a421bd2545f5b1cdc8d4f4af8f.zip
Check type instead of no. of operands.
llvm-svn: 50179
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index ff494ce8af4..435be0c05cd 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud