From 80c6f41581be2697e05bcb07d88170971cffb0c6 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Fri, 20 Jul 2018 16:52:12 +0000 Subject: [PATCH] [MSan] Hotfix compilation Make sure NewSI is used in materializeStores() llvm-svn: 337577 --- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 40033fc..4bcef69 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/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())); -- 2.7.4