[cfe-commits] r148887 - in /cfe/trunk: include/clang/Driver/CC1Options.td include/clang/Frontend/CompilerInvocation.h include/clang/Frontend/MigratorOptions.h lib/ARCMigrate/ARCMT.cpp lib/ARCMigrate/Internals.h lib/ARCMigrate/TransGCCalls.cpp lib/ARCMigrate/TransformActions.cpp lib/Frontend/CompilerInvocation.cpp test/ARCMT/GC-check-warn-nsalloc.m
Alp Toker
alp at nuanti.com
Mon May 19 13:06:13 PDT 2014
On 19/05/2014 22:30, Aaron Ballman wrote:
> I did a little bit more digging into the issue, and the problem is in
> ARCMT.cpp:318, whic has the code:
>
> Diags->setDiagnosticMapping(diag::err_arcmt_nsalloc_realloc,
> NoNSAllocReallocError ? diag::MAP_WARNING
> : diag::MAP_ERROR,
> SourceLocation());
>
> You cannot map an error diagnostic to be a warning.
> DiagnosticsEngine::setDiagnosticMapping has this assert, which is
> triggered by that code:
>
> assert((Diags->isBuiltinWarningOrExtension(Diag) ||
> (Map == diag::MAP_FATAL || Map == diag::MAP_ERROR)) &&
> "Cannot map errors into warnings!");
>
> I'm not familiar enough with ARCMT to understand what is required for
> the correct fix.
I'll look into this, think it was related to some of my diagnostic
cleanup work.
It seemed to have test coverage but if the test was disabled that'd
explain things.
Alp.
>
> ~Aaron
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
--
http://www.nuanti.com
the browser experts
More information about the cfe-commits
mailing list