From: Haojian Wu Date: Thu, 24 Jan 2019 20:30:48 +0000 (+0000) Subject: Fix a compiler error introduced in r352093. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab0c2c9a0be0906d54d622684961053b3fef4738;p=llvm Fix a compiler error introduced in r352093. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352098 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 4855f845c69..a0920f65a2a 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -1318,7 +1318,7 @@ static void moveInstructionBefore(Instruction &I, Instruction &Dest, if (MSSAU) if (MemoryUseOrDef *OldMemAcc = cast_or_null( MSSAU->getMemorySSA()->getMemoryAccess(&I))) - MSSAU->moveToPlace(OldMemAcc, Dest->getParent(), MemorySSA::End); + MSSAU->moveToPlace(OldMemAcc, Dest.getParent(), MemorySSA::End); } static Instruction *sinkThroughTriviallyReplaceablePHI(