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 | ac57f21cd157bd9620b8bf037d6028774b93a9a9 (patch) | |
tree | 15865d71573bac46e86a9e45182d824eee5aae07 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 411daa5e8170bd0c3d3309e4ca01e42fb5a6e726 (diff) | |
download | llvm-ac57f21cd157bd9620b8bf037d6028774b93a9a9.zip llvm-ac57f21cd157bd9620b8bf037d6028774b93a9a9.tar.gz llvm-ac57f21cd157bd9620b8bf037d6028774b93a9a9.tar.bz2 |
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.
llvm-svn: 133993
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions