Skip to content

Commit

Permalink
xla: Add filename to failure message in LoadIRModule
Browse files Browse the repository at this point in the history
Will help with issues like tensorflow#8947
Change: 152733558
  • Loading branch information
asimshankar authored and tensorflower-gardener committed Apr 10, 2017
1 parent 3dc4907 commit 1792a0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ limitations under the License.
namespace {

static void DieWithSMDiagnosticError(llvm::SMDiagnostic* diagnostic) {
LOG(FATAL) << diagnostic->getLineNo() << ":" << diagnostic->getColumnNo()
LOG(FATAL) << diagnostic->getFilename().str() << ":"
<< diagnostic->getLineNo() << ":" << diagnostic->getColumnNo()
<< ": " << diagnostic->getMessage().str();
}

Expand Down

0 comments on commit 1792a0a

Please sign in to comment.