mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Introduce a Clang diagnostic instruction and use it to point to C++ source locations on Clang errors and warnings (#5262)
Introduce `ImportIRId::Cpp` and refer to clang source location in its `ImportIRInst`. Part of #5245.
This commit is contained in:
@@ -573,13 +573,13 @@ auto CompilationUnit::PostCheck() -> void {
|
||||
auto import_ir_inst =
|
||||
file->import_ir_insts().Get(loc_id.import_ir_inst_id());
|
||||
const auto* import_file =
|
||||
file->import_irs().Get(import_ir_inst.ir_id).sem_ir;
|
||||
file->import_irs().Get(import_ir_inst.ir_id()).sem_ir;
|
||||
CARBON_CHECK(import_file);
|
||||
if (!IncludeInDumps(import_file->filename())) {
|
||||
return false;
|
||||
}
|
||||
file = import_file;
|
||||
entity_inst_id = import_ir_inst.inst_id;
|
||||
entity_inst_id = import_ir_inst.inst_id();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user