[PATCH] D17037: [MemoryBuiltins] Fix an issue with hasNoAliasAttr

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 13:58:34 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL260298: [MemoryBuiltins] Fix an issue with hasNoAliasAttr (authored by sanjoy).

Changed prior to commit:
  http://reviews.llvm.org/D17037?vs=47349&id=47362#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17037

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

Index: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
===================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
@@ -144,7 +144,7 @@
 
 static bool hasNoAliasAttr(const Value *V, bool LookThroughBitCast) {
   ImmutableCallSite CS(LookThroughBitCast ? V->stripPointerCasts() : V);
-  return CS && CS.hasFnAttr(Attribute::NoAlias);
+  return CS && CS.paramHasAttr(AttributeSet::ReturnIndex, Attribute::NoAlias);
 }
 
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17037.47362.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/ae16af62/attachment.bin>


More information about the llvm-commits mailing list