This is an archive of the discontinued LLVM Phabricator instance.

[Sema] Ensure that we retain __restrict qualifiers when substituting a reference type.
ClosedPublic

Authored by erik.pilkington on Sep 19 2018, 11:17 AM.

Diff Detail

Event Timeline

rjmccall added inline comments.Sep 19 2018, 9:42 PM
clang/lib/Sema/TreeTransform.h
4268

restrict is unique in being able to be applied to reference types. You should just rebuild Quals from scratch, preserving only restrict.

Sure, the new patch just preserves __restrict qualifiers. Thanks!

rjmccall accepted this revision.Sep 19 2018, 10:53 PM

Thanks, LGTM.

This revision is now accepted and ready to land.Sep 19 2018, 10:53 PM
This revision was automatically updated to reflect the committed changes.