diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-02 19:36:30 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-02 19:36:30 +0000 |
commit | 1de266be13c956f4af9566b000b67ef75454d0a8 (patch) | |
tree | 37d89191a2a65f4f346542a7bb013097d08f5069 /utils | |
parent | a915f247f72570a994d55cd0d2961cd2d7bbd0e1 (diff) | |
download | external_llvm-1de266be13c956f4af9566b000b67ef75454d0a8.zip external_llvm-1de266be13c956f4af9566b000b67ef75454d0a8.tar.gz external_llvm-1de266be13c956f4af9566b000b67ef75454d0a8.tar.bz2 |
[yaml2obj] Fix build. Apparently I've gotten too familiar with C++11.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/yaml2obj/yaml2obj.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/yaml2obj/yaml2obj.cpp b/utils/yaml2obj/yaml2obj.cpp index d21336f..eecf574 100644 --- a/utils/yaml2obj/yaml2obj.cpp +++ b/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); |