diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:33:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 09:33:01 +0000 |
commit | 15c3789763e82b7c781ea1ebcae24de826259b75 (patch) | |
tree | f4ac56de3e09234ff3e82fa00c0c05d08633c900 /lib/VMCore/Verifier.cpp | |
parent | dc4efcbdba7b9a8868ca7e329116910be894ca47 (diff) | |
download | llvm-15c3789763e82b7c781ea1ebcae24de826259b75.tar.gz llvm-15c3789763e82b7c781ea1ebcae24de826259b75.tar.bz2 llvm-15c3789763e82b7c781ea1ebcae24de826259b75.tar.xz |
Remove the now dead VarArgsIncompatible variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165496 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index b459f7b956..6c60745d60 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1170,9 +1170,8 @@ void Verifier::VerifyCallSite(CallSite CS) { VerifyParameterAttrs(Attr, CS.getArgument(Idx-1)->getType(), false, I); - Attributes VArgI = Attr & Attribute::VarArgsIncompatible; - Assert1(!VArgI, "Attribute " + VArgI.getAsString() + - " cannot be used for vararg call arguments!", I); + Assert1(!Attr.hasIncompatibleWithVarArgsAttrs(), + "Attribute 'sret' cannot be used for vararg call arguments!", I); } // Verify that there's no metadata unless it's a direct call to an intrinsic. |