================ @@ -605,13 +605,11 @@ void BackendConsumer::UnsupportedDiagHandler( // Context will be nullptr for IR input files, we will construct the diag // message from llvm::DiagnosticInfoUnsupported. - if (Context != nullptr) { + if (Context != nullptr) Loc = getBestLocationFromDebugLoc(D, BadDebugInfo, Filename, Line, Column); ---------------- spall wrote:
Is the best location always "unknown"? or are these tests only for cases where the context is null? https://github.com/llvm/llvm-project/pull/135655 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits