From 88fe1ad187041e2ca636e0f86204e30fc6e14300 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Mar 2009 19:23:25 +0000 Subject: [PATCH] complete comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66055 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index b3338676ce3..441b448c010 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -721,7 +721,9 @@ void SROA::RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *BCInst, SmallVector &NewElts) { // If this is a memcpy/memmove, construct the other pointer as the - // appropriate type. The "Other" pointer is the pointer that goes to + // appropriate type. The "Other" pointer is the pointer that goes to memory + // that doesn't have anything to do with the alloca that we are promoting. For + // memset, this Value* stays null. Value *OtherPtr = 0; unsigned MemAlignment = MI->getAlignment()->getZExtValue(); if (MemCpyInst *MCI = dyn_cast(MI)) {