summaryrefslogtreecommitdiffstats
path: root/clang/Driver
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-19 18:55:06 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-19 18:55:06 +0000
commit19367f54e2390f13da441825d83f3f3c5ca85d8c (patch)
tree6f528e7a8edf16ff5fe09e5998d17524a5d07f87 /clang/Driver
parent1026a8001fc7c2391ea41a87e664a9e30e58e75d (diff)
downloadbcm5719-llvm-19367f54e2390f13da441825d83f3f3c5ca85d8c.tar.gz
bcm5719-llvm-19367f54e2390f13da441825d83f3f3c5ca85d8c.zip
Allow notes to be printed following a fatal error, then suppress any
diagnostics following those notes. Make exceeding the template instantiation depth a fatal error. Thanks to Daniel for pointing out the problem! llvm-svn: 67320
Diffstat (limited to 'clang/Driver')
-rw-r--r--clang/Driver/Warnings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/Driver/Warnings.cpp b/clang/Driver/Warnings.cpp
index 3a9943516bc..18e44d72e3c 100644
--- a/clang/Driver/Warnings.cpp
+++ b/clang/Driver/Warnings.cpp
@@ -170,6 +170,8 @@ bool ProcessWarningOptions(Diagnostic &Diags) {
diag::MAP_IGNORE);
Diags.setDiagnosticMapping(diag::err_pp_file_not_found, diag::MAP_FATAL);
+ Diags.setDiagnosticMapping(diag::err_template_recursion_depth_exceeded,
+ diag::MAP_FATAL);
Diags.setSuppressSystemWarnings(!OptWarnInSystemHeaders);
for (OptionsList::iterator it = Options.begin(), e = Options.end();
OpenPOWER on IntegriCloud