mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
[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
This commit is contained in:
parent
a915f247f7
commit
1de266be13
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user