summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2017-05-15 21:57:41 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2017-05-15 21:57:41 +0000
commitd761e2c26405d528ed61b8feb7ca549a1b823131 (patch)
treeec39487b02736208147653893c4836e31c22f1c1 /llvm/lib/IR/Attributes.cpp
parent203c6f055d55db1d99ef074e9a8122a47d669b4d (diff)
downloadbcm5719-llvm-d761e2c26405d528ed61b8feb7ca549a1b823131.tar.gz
bcm5719-llvm-d761e2c26405d528ed61b8feb7ca549a1b823131.zip
[IR] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC).
llvm-svn: 303119
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index b97afb6f4a6..ce60367a6c8 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -34,6 +34,8 @@
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
+#include <climits>
+#include <cstddef>
#include <cstdint>
#include <limits>
#include <map>
@@ -567,11 +569,11 @@ unsigned AttributeSet::getNumAttributes() const {
}
bool AttributeSet::hasAttribute(Attribute::AttrKind Kind) const {
- return SetNode ? SetNode->hasAttribute(Kind) : 0;
+ return SetNode ? SetNode->hasAttribute(Kind) : false;
}
bool AttributeSet::hasAttribute(StringRef Kind) const {
- return SetNode ? SetNode->hasAttribute(Kind) : 0;
+ return SetNode ? SetNode->hasAttribute(Kind) : false;
}
Attribute AttributeSet::getAttribute(Attribute::AttrKind Kind) const {
OpenPOWER on IntegriCloud