[MSan] Hotfix compilation
authorAlexander Potapenko <glider@google.com>
Fri, 20 Jul 2018 16:52:12 +0000 (16:52 +0000)
committerAlexander Potapenko <glider@google.com>
Fri, 20 Jul 2018 16:52:12 +0000 (16:52 +0000)
Make sure NewSI is used in materializeStores()

llvm-svn: 337577

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

index 40033fc..4bcef69 100644 (file)
@@ -917,6 +917,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
 
       StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment);
       LLVM_DEBUG(dbgs() << "  STORE: " << *NewSI << "\n");
+      (void)NewSI;
 
       if (SI->isAtomic())
         SI->setOrdering(addReleaseOrdering(SI->getOrdering()));