summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-19 09:04:58 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-19 09:04:58 +0000
commit5d122b6ec0767a543f797fafc77c1ad8e018b08b (patch)
tree77c1db0a004283cce68378976611132e48df8d3d /lib/VMCore
parent1d3dcfe4246b4d45fa78a8dfd0a11c7fff842c15 (diff)
Inline the only use of the hasParameterOnlyAttrs method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Verifier.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index eaafa68c39c..17301872ea9 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -534,7 +534,10 @@ void Verifier::VerifyParameterAttrs(Attribute Attrs, Type *Ty,
"' only apply to functions!", V);
if (isReturnValue)
- Assert1(!Attrs.hasParameterOnlyAttrs(),
+ Assert1(!Attrs.hasAttribute(Attribute::ByVal) &&
+ !Attrs.hasAttribute(Attribute::Nest) &&
+ !Attrs.hasAttribute(Attribute::StructRet) &&
+ !Attrs.hasAttribute(Attribute::NoCapture),
"Attribute 'byval', 'nest', 'sret', and 'nocapture' "
"do not apply to return values!", V);