[yaml2obj] Fix build. Apparently I've gotten too familiar with C++11.

llvm-svn: 161206
This commit is contained in:
Michael J. Spencer 2012-08-02 19:36:30 +00:00
parent 1ffd9de4f1
commit 152a3735ce
1 changed files with 1 additions and 1 deletions

View File

@ -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);