mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
committed by
GitHub
parent
4e078e3797
commit
c1a750b8bf
@@ -248,7 +248,7 @@ static void EmitPrefix(llvm::raw_ostream &o, llvm::raw_ostream::Colors color,
|
||||
|
||||
std::optional<ProvenanceRange> AllSources::GetInclusionInfo(
|
||||
const std::optional<ProvenanceRange> &range) const {
|
||||
if (!range)
|
||||
if (!range || !IsValid(range->start()))
|
||||
return std::nullopt;
|
||||
const Origin &origin{MapToOrigin(range->start())};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user