[PATCH] D22189: llvm.noalias - Clang CodeGen - check restrict variable map only for restrict-qualified lvalues

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 11 18:03:48 PDT 2016

majnemer added a subscriber: majnemer.
majnemer accepted this revision.
majnemer added a reviewer: majnemer.
majnemer added a comment.
This revision is now accepted and ready to land.


Comment at: lib/CodeGen/CodeGenFunction.h:2725
@@ -2724,3 +2724,3 @@
   void EmitStoreOfScalar(llvm::Value *Value, Address Addr,
-                         bool Volatile, QualType Ty,
+                         bool Volatile, bool Restrict, QualType Ty,
                          AlignmentSource AlignSource = AlignmentSource::Type,
Multiple bool parameters aren't super great. Could we make it an enum and `|` the two properties as needed?  If it's super painful, this could be done later.


More information about the cfe-commits mailing list