From: Alexander Potapenko Date: Fri, 20 Jul 2018 16:52:12 +0000 (+0000) Subject: [MSan] Hotfix compilation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86a77cda68e60807a00ccbf80a5af45a60af34e2;p=llvm [MSan] Hotfix compilation Make sure NewSI is used in materializeStores() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 40033fc7eb0..4bcef697278 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -917,6 +917,7 @@ struct MemorySanitizerVisitor : public InstVisitor { StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment); LLVM_DEBUG(dbgs() << " STORE: " << *NewSI << "\n"); + (void)NewSI; if (SI->isAtomic()) SI->setOrdering(addReleaseOrdering(SI->getOrdering()));