mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +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:
@@ -50,8 +50,8 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case ImportRefLoaded::Kind: {
|
||||
auto import_ir_inst = ir->import_ir_insts().Get(
|
||||
untyped_inst.As<SemIR::AnyImportRef>().import_ir_inst_id);
|
||||
ir = ir->import_irs().Get(import_ir_inst.ir_id).sem_ir;
|
||||
inst_id = import_ir_inst.inst_id;
|
||||
ir = ir->import_irs().Get(import_ir_inst.ir_id()).sem_ir;
|
||||
inst_id = import_ir_inst.inst_id();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user