summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-01-29 17:42:24 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-01-29 17:42:24 +0000
commitf1af1feeee0f0ec797410762c006211f9c1e2a0f (patch)
treeed6775a8d71e0621a78fda169c00b730bd7c075e /lib/Transforms/Instrumentation
parent8c3a411cd6a193672438a80fa37fbff690833a0c (diff)
downloadllvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.tar.gz
llvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.tar.bz2
llvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.tar.xz
Fixing warnings revealed by gcc release build
Fixed set-but-not-used warnings. Reviewer: gribozavr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173810 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 714972eb34..80705af9b8 100644
--- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -1594,6 +1594,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
if (MS.TrackOrigins)
IRB.CreateStore(getOrigin(A),
getOriginPtrForArgument(A, IRB, ArgOffset));
+ (void)Store;
assert(Size != 0 && Store != 0);
DEBUG(dbgs() << " Param:" << *Store << "\n");
ArgOffset += DataLayout::RoundUpAlignment(Size, 8);