mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 03:10:28 +00: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:
1 parent
2073594d8a
commit
108e39e095
2 files changed
+106
-8
No files matched your search
@@ -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