From e0b1b4645a951090aa01f0467b3b76f9296ff6d8 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 6 Dec 2012 13:38:00 +0000 Subject: [PATCH] MemorySanitizer.cpp: Suppress a warning. [-Wunused-variable] llvm-svn: 169504 --- 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 a2777f6..a3b293e 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -411,6 +411,7 @@ struct MemorySanitizerVisitor : public InstVisitor { StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, I.getAlignment()); DEBUG(dbgs() << " STORE: " << *NewSI << "\n"); + (void)NewSI; // If the store is volatile, add a check. if (I.isVolatile()) insertCheck(Val, &I); -- 2.7.4