[PATCH] D52271: [Sema] Ensure that we retain __restrict qualifiers when substituting a reference type.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 19 21:42:12 PDT 2018


rjmccall added inline comments.


================
Comment at: clang/lib/Sema/TreeTransform.h:4268
+    Quals.removeVolatile();
+  }
 
----------------
`restrict` is unique in being able to be applied to reference types.  You should just rebuild `Quals` from scratch, preserving only `restrict`.


Repository:
  rC Clang

https://reviews.llvm.org/D52271





More information about the cfe-commits mailing list