diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-01-29 17:42:24 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-01-29 17:42:24 +0000 |
commit | f1af1feeee0f0ec797410762c006211f9c1e2a0f (patch) | |
tree | ed6775a8d71e0621a78fda169c00b730bd7c075e | |
parent | 8c3a411cd6a193672438a80fa37fbff690833a0c (diff) | |
download | external_llvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.zip external_llvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.tar.gz external_llvm-f1af1feeee0f0ec797410762c006211f9c1e2a0f.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/StackColoring.cpp | 5 | ||||
-rw-r--r-- | lib/Transforms/Instrumentation/MemorySanitizer.cpp | 1 | ||||
-rw-r--r-- | lib/Transforms/Scalar/SROA.cpp | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp index c173293..bd0d809 100644 --- a/lib/CodeGen/StackColoring.cpp +++ b/lib/CodeGen/StackColoring.cpp @@ -202,9 +202,8 @@ void StackColoring::getAnalysisUsage(AnalysisUsage &AU) const { void StackColoring::dump() { for (df_iterator<MachineFunction*> FI = df_begin(MF), FE = df_end(MF); FI != FE; ++FI) { - unsigned Num = BasicBlocks[*FI]; - DEBUG(dbgs()<<"Inspecting block #"<<Num<<" ["<<FI->getName()<<"]\n"); - Num = 0; + DEBUG(dbgs()<<"Inspecting block #"<<BasicBlocks[*FI]<< + " ["<<FI->getName()<<"]\n"); DEBUG(dbgs()<<"BEGIN : {"); for (unsigned i=0; i < BlockLiveness[*FI].Begin.size(); ++i) DEBUG(dbgs()<<BlockLiveness[*FI].Begin.test(i)<<" "); diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 714972e..80705af 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); diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index 4204171..173f25f 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -2971,6 +2971,7 @@ private: else New = IRB.CreateLifetimeEnd(Ptr, Size); + (void)New; DEBUG(dbgs() << " to: " << *New << "\n"); return true; } |