[cfe-commits] r90778 - /cfe/trunk/lib/CodeGen/CGCall.cpp

Nuno Lopes nunoplopes at sapo.pt
Mon Dec 7 10:30:06 PST 2009


Author: nlopes
Date: Mon Dec  7 12:30:06 2009
New Revision: 90778

URL: http://llvm.org/viewvc/llvm-project?rev=90778&view=rev
Log:
implement PR5274: mark 'restrict' parameters as noalias

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=90778&r1=90777&r2=90778&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Mon Dec  7 12:30:06 2009
@@ -561,6 +561,9 @@
     const ABIArgInfo &AI = it->info;
     unsigned Attributes = 0;
 
+    if (ParamType.isRestrictQualified())
+      Attributes |= llvm::Attribute::NoAlias;
+
     switch (AI.getKind()) {
     case ABIArgInfo::Coerce:
       break;





More information about the cfe-commits mailing list