mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Fix SemIR printout for string literals in macros (#6440)
Added SemIR printout for string literals in macros in the tests. Removed adding the inst in the imports to make the printout succeed. Part of #6303
This commit is contained in:
@@ -2284,7 +2284,6 @@ static auto MapConstant(Context& context, SemIR::LocId loc_id,
|
||||
context.string_literal_values().Add(string_literal->getString());
|
||||
auto inst_id =
|
||||
MakeStringLiteral(context, Parse::StringLiteralId::None, string_id);
|
||||
context.imports().push_back(inst_id);
|
||||
return inst_id;
|
||||
} else if (isa<clang::CXXNullPtrLiteralExpr>(expr)) {
|
||||
auto type_id = MapNullptrType(context, loc_id).type_id;
|
||||
|
||||
Reference in New Issue
Block a user