summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-26 08:12:32 +0000
committerAlp Toker <alp@nuanti.com>2014-01-26 08:12:32 +0000
commit14c8aff1aaed7bb9879cd9b9f8361e85c6d8d53c (patch)
treeff751c7c20c26151192a9d4d20ebe66f9028c64f /clang/lib/Basic
parent82f8c50a7391dfc69e8b91695d9217ab19ccc2cb (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud