summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-06 13:38:00 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-06 13:38:00 +0000
commit67b9928a937f57831c7270ba9911515d64c2cfb9 (patch)
tree342bf52fa2e7a4fd17b7a03928741b018a77c8c1 /lib/Transforms/Instrumentation
parent7baaee37cc4391b472fcce572d1ae68a8c547a71 (diff)
downloadllvm-67b9928a937f57831c7270ba9911515d64c2cfb9.tar.gz
llvm-67b9928a937f57831c7270ba9911515d64c2cfb9.tar.bz2
llvm-67b9928a937f57831c7270ba9911515d64c2cfb9.tar.xz
MemorySanitizer.cpp: Suppress a warning. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/MemorySanitizer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index a2777f6c97..a3b293eed6 100644
--- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -411,6 +411,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
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);