summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-12 06:43:35 +0000
committerChris Lattner <sabre@nondot.org>2008-01-12 06:43:35 +0000
commit177977ac19c6349b715123087fc175eac4687956 (patch)
treee77a63cf12d288b84e3216af15347766a73a6918 /llvm/lib/Transforms/IPO/Inliner.cpp
parent0395fd76cff586eccd44b17b65220608f48160e1 (diff)
downloadbcm5719-llvm-177977ac19c6349b715123087fc175eac4687956.tar.gz
bcm5719-llvm-177977ac19c6349b715123087fc175eac4687956.zip
When forming the squigly underline for a diagnostic, make sure to
verify that the source range corresponds to the current file, not just the current line. This allows us to emit: a.c:1:44: error: invalid operands to binary expression ('double' and 'int *') double a; int *b; void f(void) { int c = a + ~ ^ instead of: a.c:1:44: error: invalid operands to binary expression ('double' and 'int *') double a; int *b; void f(void) { int c = a + ~ ~ ^ for PR1906 (note the leading ~). Thanks to Neil for noticing this. llvm-svn: 45901
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud