diff options
Diffstat (limited to 'lib/Format/Format.cpp')
| -rw-r--r-- | lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index d8633d88f1..6b57b184d2 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -258,12 +258,12 @@ template <> struct DocumentListTraits<std::vector<FormatStyle> > { namespace clang { namespace format { -const std::error_category &getParestCategory() { +const std::error_category &getParseCategory() { static ParseErrorCategory C; return C; } std::error_code make_error_code(ParseError e) { - return std::error_code(static_cast<int>(e), getParestCategory()); + return std::error_code(static_cast<int>(e), getParseCategory()); } const char *ParseErrorCategory::name() const LLVM_NOEXCEPT { |
