r268732 - Adding omitted column to invalid loc diagnostic.

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 06:29:46 PDT 2016


Author: bcraig
Date: Fri May  6 08:29:46 2016
New Revision: 268732

URL: http://llvm.org/viewvc/llvm-project?rev=268732&view=rev
Log:
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

Modified:
    cfe/trunk/lib/CodeGen/CodeGenAction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=268732&r1=268731&r2=268732&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Fri May  6 08:29:46 2016
@@ -454,7 +454,7 @@ const FullSourceLoc BackendConsumer::get
     // 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;
 }




More information about the cfe-commits mailing list