[llvm] r337577 - [MSan] Hotfix compilation
Alexander Potapenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 09:52:12 PDT 2018
Author: glider
Date: Fri Jul 20 09:52:12 2018
New Revision: 337577
URL: http://llvm.org/viewvc/llvm-project?rev=337577&view=rev
Log:
[MSan] Hotfix compilation
Make sure NewSI is used in materializeStores()
Modified:
llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp?rev=337577&r1=337576&r2=337577&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/MemorySanitizer.cpp Fri Jul 20 09:52:12 2018
@@ -917,6 +917,7 @@ struct MemorySanitizerVisitor : public I
StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment);
LLVM_DEBUG(dbgs() << " STORE: " << *NewSI << "\n");
+ (void)NewSI;
if (SI->isAtomic())
SI->setOrdering(addReleaseOrdering(SI->getOrdering()));
More information about the llvm-commits
mailing list