diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Object/YAML.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/YAMLTraits.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Object/YAML.cpp b/llvm/lib/Object/YAML.cpp index 5b665032bb3..21bacb8578f 100644 --- a/llvm/lib/Object/YAML.cpp +++ b/llvm/lib/Object/YAML.cpp @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Object/YAML.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp index 1e42b63e8d5..b0cd4151863 100644 --- a/llvm/lib/Support/YAMLTraits.cpp +++ b/llvm/lib/Support/YAMLTraits.cpp @@ -127,8 +127,8 @@ void Input::endMapping() { return; for (MapHNode::NameToNode::iterator i = MN->Mapping.begin(), End = MN->Mapping.end(); i != End; ++i) { - if (!MN->isValidKey(i->first)) { - setError(i->second, Twine("unknown key '") + i->first + "'"); + if (!MN->isValidKey(i->first())) { + setError(i->second, Twine("unknown key '") + i->first() + "'"); break; } } |