]> granicus.if.org Git - clang/commitdiff
Adding omitted column to invalid loc diagnostic.
authorBen Craig <ben.craig@codeaurora.org>
Fri, 6 May 2016 13:29:46 +0000 (13:29 +0000)
committerBen Craig <ben.craig@codeaurora.org>
Fri, 6 May 2016 13:29:46 +0000 (13:29 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268732 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenAction.cpp

index d280a3eaef13a83b0c7a1c9dda4283b3a5d50a6e..98685539d35c66cc4efc8e6058a0e8ab4af0c211 100644 (file)
@@ -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;
 }