mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 18:51:11 +01:00
Update LLVM and fix a couple of API usages (#6998)
The `TemplateArgLocInfo` change is more interesting than usual as this isn't enforced in the type system, and only shows up as a crash.
This commit is contained in:
@@ -223,7 +223,8 @@ static auto ConvertArgToTemplateArg(
|
||||
}
|
||||
|
||||
// TODO: provide a better location.
|
||||
auto template_loc = clang::TemplateArgumentLocInfo();
|
||||
auto template_loc = clang::TemplateArgumentLocInfo(context.ast_context(),
|
||||
clang::SourceLocation());
|
||||
|
||||
auto const_inst_id =
|
||||
context.constant_values().GetConstantInstId(converted_inst_id);
|
||||
|
||||
Reference in New Issue
Block a user