diff options
author | Ben Craig <ben.craig@codeaurora.org> | 2016-05-06 13:29:46 +0000 |
---|---|---|
committer | Ben Craig <ben.craig@codeaurora.org> | 2016-05-06 13:29:46 +0000 |
commit | 6e4695a4df355aa2c4b70bbfcca5f28a6c49b47c (patch) | |
tree | 03ec869e690bc15105bbdf44beed98e795cd3492 /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | f9d8b8ccc5f01023c8a990b71f1e6f5daf755869 (diff) | |
download | bcm5719-llvm-6e4695a4df355aa2c4b70bbfcca5f28a6c49b47c.tar.gz bcm5719-llvm-6e4695a4df355aa2c4b70bbfcca5f28a6c49b47c.zip |
Adding omitted column to invalid loc diagnostic.
note_fe_backend_invalid_loc expects three arguments (file, line, column),
and will assert when only given two. The other two places in this file that
use note_fe_backend_invalid_loc already supply the Column for the third
parameter.
http://reviews.llvm.org/D19936
llvm-svn: 268732
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index d280a3eaef1..98685539d35 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -454,7 +454,7 @@ const FullSourceLoc BackendConsumer::getBestLocationFromDebugLoc( // we could not translate this location. This can happen in the // case of #line directives. Diags.Report(Loc, diag::note_fe_backend_invalid_loc) - << Filename << Line; + << Filename << Line << Column; return Loc; } |