diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-28 05:11:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-28 05:11:33 +0000 |
commit | 83068315f7d9ed7b82ec35c2c26702151d186a70 (patch) | |
tree | 9aab301406a5bcfe48378c8fe664c6dda7f7cfda /lib/Analysis/FormatString.cpp | |
parent | 0b8c98f3ddf83adcb9e9d98b68ce38e970cdee73 (diff) |
Fix PR9279 - Macro expansion stack trace seriously broken with function-style macros, by not recursively printing notes for other 'instantiated from' notes.
This is a one line fix here:
+ // Don't print recursive instantiation notes from an instantiation note.
+ Loc = SM.getSpellingLoc(Loc);
While here, fix the testcase to be more precise (it got filecheck'ized
brutally), and fix EmitCaretDiagnostic to be private and to not pass down
the unused 'Level' argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/FormatString.cpp')
0 files changed, 0 insertions, 0 deletions