mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +01:00
Merging CrossRef into ImportRefUsed, shifting builtins over. (#3659)
This is a bit of a cleanup; I probably should've just renamed CrossRef instead of adding ImportRefUsed. Adding `is_builtin` to InstId is more about providing a standard API for the check, which I expect to add a little more of. Shifts import tests to validate that the BuildValueRepr CHECK isn't accidentally hit.
This commit is contained in:
@@ -57,7 +57,7 @@ auto FileContext::Run() -> std::unique_ptr<llvm::Module> {
|
||||
|
||||
auto FileContext::GetGlobal(SemIR::InstId inst_id) -> llvm::Value* {
|
||||
// All builtins are types, with the same empty lowered value.
|
||||
if (inst_id.index < SemIR::BuiltinKind::ValidCount) {
|
||||
if (inst_id.is_builtin()) {
|
||||
return GetTypeAsValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user