[llvm-commits] [llvm] r50179 - /llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Devang Patel
dpatel at apple.com
Wed Apr 23 13:18:29 PDT 2008
Author: dpatel
Date: Wed Apr 23 15:18:29 2008
New Revision: 50179
URL: http://llvm.org/viewvc/llvm-project?rev=50179&view=rev
Log:
Check type instead of no. of operands.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=50179&r1=50178&r2=50179&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Wed Apr 23 15:18:29 2008
@@ -456,7 +456,7 @@
// 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());
More information about the llvm-commits
mailing list