Index: llvm/trunk/lib/IR/DiagnosticInfo.cpp =================================================================== --- llvm/trunk/lib/IR/DiagnosticInfo.cpp +++ llvm/trunk/lib/IR/DiagnosticInfo.cpp @@ -136,6 +136,7 @@ unsigned *Line, unsigned *Column) const { DILocation *L = getDebugLoc(); + assert(L != nullptr && "debug location is invalid"); *Filename = L->getFilename(); *Line = L->getLine(); *Column = L->getColumn();