mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
C++ Interop: Add a test that demonstrates that const non nullable pointers are wrongly mapped to nullable (optional) pointers (#6284)
Part of #5772.
This commit is contained in:
@@ -1459,6 +1459,9 @@ static auto MakeParamPatternsBlockId(Context& context, SemIR::LocId loc_id,
|
||||
// The parameter type is decayed but hasn't necessarily had its qualifiers
|
||||
// removed.
|
||||
// TODO: The presence of qualifiers here is probably a Clang bug.
|
||||
// TODO: For const non nullable pointers (`C* _Nonnull const`), this removes
|
||||
// both the const and the non-nullable attribute. We should probably
|
||||
// preserve the non-nullable attribute.
|
||||
clang::QualType param_type = orig_param_type.getUnqualifiedType();
|
||||
|
||||
// Mark the start of a region of insts, needed for the type expression
|
||||
|
||||
Reference in New Issue
Block a user