back out this too to restore the bots
authorGabor Greif <ggreif@gmail.com>
Tue, 27 Jul 2010 15:56:07 +0000 (15:56 +0000)
committerGabor Greif <ggreif@gmail.com>
Tue, 27 Jul 2010 15:56:07 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109509 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/MemCpyOptimizer.cpp

index 8087cbeb79d02d002a458c362c9eaac164f1acd5..8b9370691f6c18b81fed6363a04f722fe9d04b82 100644 (file)
@@ -373,7 +373,7 @@ bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
       // If the call is readnone, ignore it, otherwise bail out.  We don't even
       // allow readonly here because we don't want something like:
       // A[1] = 2; strlen(A); A[2] = 2; -> memcpy(A, ...); strlen(A).
-      if (AA.getModRefBehavior(CallSite(BI)) ==
+      if (AA.getModRefBehavior(CallSite::get(BI)) ==
             AliasAnalysis::DoesNotAccessMemory)
         continue;