Skip to content

Commit

Permalink
Fixing warnings revealed by gcc release build
Browse files Browse the repository at this point in the history
    
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
  • Loading branch information
Edwin Vane committed Jan 29, 2013
1 parent 8c3a411 commit f1af1fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/CodeGen/StackColoring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)<<" ");
Expand Down
1 change: 1 addition & 0 deletions lib/Transforms/Instrumentation/MemorySanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions lib/Transforms/Scalar/SROA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2971,6 +2971,7 @@ class AllocaPartitionRewriter : public InstVisitor<AllocaPartitionRewriter,
else
New = IRB.CreateLifetimeEnd(Ptr, Size);

(void)New;
DEBUG(dbgs() << " to: " << *New << "\n");
return true;
}
Expand Down

0 comments on commit f1af1fe

Please sign in to comment.