s/isReturnStruct()/hasStructRetAttr()/g
llvm-svn: 47857
diff --git a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
index 1de066e..298b5b1 100644
--- a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
@@ -75,7 +75,7 @@
return false;
// Make sure that function returns struct.
- if (F->arg_size() == 0 || !F->isStructReturn() || F->doesNotReturn())
+ if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
return false;
assert (F->getReturnType() == Type::VoidTy && "Invalid function return type");