summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-08-02 19:36:30 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-08-02 19:36:30 +0000
commit152a3735ce639a17b176e565744d2a088f259ad8 (patch)
tree8689f7c9273cbbdc889e4a90be127bb26cde1ea5
parent1ffd9de4f1e69a1339025cb048419e3320e3be69 (diff)
downloadbcm5719-llvm-152a3735ce639a17b176e565744d2a088f259ad8.tar.gz
bcm5719-llvm-152a3735ce639a17b176e565744d2a088f259ad8.zip
[yaml2obj] Fix build. Apparently I've gotten too familiar with C++11.
llvm-svn: 161206
-rw-r--r--llvm/utils/yaml2obj/yaml2obj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/yaml2obj/yaml2obj.cpp b/llvm/utils/yaml2obj/yaml2obj.cpp
index d21336f5fd2..eecf574348f 100644
--- a/llvm/utils/yaml2obj/yaml2obj.cpp
+++ b/llvm/utils/yaml2obj/yaml2obj.cpp
@@ -39,7 +39,7 @@ static cl::opt<std::string>
Input(cl::Positional, cl::desc("<input>"), cl::init("-"));
template<class T>
-typename std::enable_if<std::numeric_limits<T>::is_integer, bool>::type
+typename llvm::enable_if_c<std::numeric_limits<T>::is_integer, bool>::type
getAs(const llvm::yaml::ScalarNode *SN, T &Result) {
SmallString<4> Storage;
StringRef Value = SN->getValue(Storage);
OpenPOWER on IntegriCloud