efriedma added inline comments.

================
Comment at: lib/CodeGen/CodeGenModule.cpp:2512
+  if (D && isa<CXXConstructorDecl>(D) &&
+      cast<CXXConstructorDecl>(D)->isCopyOrMoveConstructor())
+    F->addParamAttr(1, llvm::Attribute::NoAlias);
----------------
Why does it matter whether it's a copy constructor?  The standard text you're 
quoting doesn't seem to make that distinction.


Repository:
  rC Clang

https://reviews.llvm.org/D46441



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to