projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a92230
)
Use method to query for attributes.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 5 Oct 2012 06:18:50 +0000
(06:18 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 5 Oct 2012 06:18:50 +0000
(06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165304
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index 292456ab63cf7d13de56241e5f750fa4bed0d900..650125a08c344eb248d93342f6c5e8cc7b4ae7b0 100644
(file)
--- a/
lib/VMCore/Verifier.cpp
+++ b/
lib/VMCore/Verifier.cpp
@@
-526,7
+526,7
@@
void Verifier::visitMDNode(MDNode &MD, Function *F) {
// value of the specified type. The value V is printed in error messages.
void Verifier::VerifyParameterAttrs(Attributes Attrs, Type *Ty,
bool isReturnValue, const Value *V) {
- if (
Attrs == Attribute::None
)
+ if (
!Attrs.hasAttributes()
)
return;
Attributes FnCheckAttr = Attrs & Attribute::FunctionOnly;