[PATCH] D25460: Fix memory issue in AttrBuilder::removeAttribute uses

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 07:57:37 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL285298: Fix memory issue in AttrBuilder::removeAttribute uses. (authored by bjope).

Changed prior to commit:
  https://reviews.llvm.org/D25460?vs=74198&id=76034#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25460

Files:
  llvm/trunk/lib/CodeGen/Analysis.cpp


Index: llvm/trunk/lib/CodeGen/Analysis.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/Analysis.cpp
+++ llvm/trunk/lib/CodeGen/Analysis.cpp
@@ -541,8 +541,8 @@
 
   // Noalias is completely benign as far as calling convention goes, it
   // shouldn't affect whether the call is a tail call.
-  CallerAttrs = CallerAttrs.removeAttribute(Attribute::NoAlias);
-  CalleeAttrs = CalleeAttrs.removeAttribute(Attribute::NoAlias);
+  CallerAttrs.removeAttribute(Attribute::NoAlias);
+  CalleeAttrs.removeAttribute(Attribute::NoAlias);
 
   if (CallerAttrs.contains(Attribute::ZExt)) {
     if (!CalleeAttrs.contains(Attribute::ZExt))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25460.76034.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161027/7ee6fd85/attachment.bin>


More information about the llvm-commits mailing list