From: NAKAMURA Takumi Date: Thu, 6 Dec 2012 13:38:00 +0000 (+0000) Subject: MemorySanitizer.cpp: Suppress a warning. [-Wunused-variable] X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67b9928a937f57831c7270ba9911515d64c2cfb9;p=oota-llvm.git MemorySanitizer.cpp: Suppress a warning. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169504 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index a2777f6c97b..a3b293eed6f 100644 --- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/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);