diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-30 06:54:41 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-30 06:54:41 +0000 |
commit | 0aed1135fc89fbf28f83e0110646679c16fc0d95 (patch) | |
tree | 33e54342820f2d445481bbf2aa679254423a4807 /llvm/lib/IR/Verifier.cpp | |
parent | 513bd8a73c0451119eb88cf9023b7aa37cd4381e (diff) | |
download | bcm5719-llvm-0aed1135fc89fbf28f83e0110646679c16fc0d95.tar.gz bcm5719-llvm-0aed1135fc89fbf28f83e0110646679c16fc0d95.zip |
Attempt to fix dragonegg. Use the number of slots to determine if the AttributeSet has attributes or not.
llvm-svn: 173902
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 39f95fa772d..2d69493ecef 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -797,7 +797,7 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT, } static bool VerifyAttributeCount(const AttributeSet &Attrs, unsigned Params) { - if (Attrs.isEmpty()) + if (Attrs.getNumSlots() == 0) return true; unsigned LastSlot = Attrs.getNumSlots() - 1; |