diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-02 20:58:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-02 20:58:48 +0000 |
commit | 7b5b5b4409a64849908f67b9e389c0ba185b64b0 (patch) | |
tree | f967545e734b5c98a24ed8f0ca8138c1e62643d8 /lib/Frontend/TextDiagnosticPrinter.cpp | |
parent | 3ede8d0a7d1813f678ccc6011a99a0834b1b6116 (diff) |
fix PR2639
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r-- | lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/TextDiagnosticPrinter.cpp b/lib/Frontend/TextDiagnosticPrinter.cpp index 939a65f406..d3e46ff029 100644 --- a/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/lib/Frontend/TextDiagnosticPrinter.cpp @@ -218,7 +218,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(SourceLocation Loc, // We have an insertion hint. Determine whether the inserted // code is on the same line as the caret. std::pair<FileID, unsigned> HintLocInfo - = SM.getDecomposedLoc(Hint->InsertionLoc); + = SM.getDecomposedInstantiationLoc(Hint->InsertionLoc); if (SM.getLineNumber(HintLocInfo.first, HintLocInfo.second) == SM.getLineNumber(FID, FileOffset)) { // Insert the new code into the line just below the code |