diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-26 08:12:32 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-26 08:12:32 +0000 |
commit | 14c8aff1aaed7bb9879cd9b9f8361e85c6d8d53c (patch) | |
tree | ff751c7c20c26151192a9d4d20ebe66f9028c64f /clang/lib/Basic | |
parent | 82f8c50a7391dfc69e8b91695d9217ab19ccc2cb (diff) | |
download | bcm5719-llvm-14c8aff1aaed7bb9879cd9b9f8361e85c6d8d53c.tar.gz bcm5719-llvm-14c8aff1aaed7bb9879cd9b9f8361e85c6d8d53c.zip |
Fix -Wreturn-type build failure on ASTMatchers, plus an intended assert
llvm-svn: 200140
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 9bb7478dff9..f50754830fd 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -222,7 +222,7 @@ void DiagnosticsEngine::setDiagnosticMapping(diag::kind Diag, diag::Mapping Map, // Create a new state/point and fit it into the vector of DiagStatePoints // so that the vector is always ordered according to location. - Pos->Loc.isBeforeInTranslationUnitThan(Loc); + assert(Pos->Loc.isBeforeInTranslationUnitThan(Loc)); DiagStates.push_back(*Pos->State); DiagState *NewState = &DiagStates.back(); GetCurDiagState()->setMappingInfo(Diag, MappingInfo); |