================
Comment at: lib/CodeGen/CGDecl.cpp:1219-1224
@@ +1218,8 @@
+
+  std::string Name = CurFn->getName();
+  Name += ": ";
+  Name += D.getName();
+
+  llvm::MDNode *Scope =
+    MDB.createAnonymousAliasScope(NoAliasDomain, Name);
+  addNoAliasScope(Scope);
----------------
It's a shame that `createAnonymousAARoot` doesn't take a twine, it would save a 
memory allocation through here.

http://reviews.llvm.org/D9403

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to