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
This commit is contained in:
Edwin Vane 2013-01-29 17:42:24 +00:00
parent 8c3a411cd6
commit f1af1feeee
3 changed files with 4 additions and 3 deletions

View File

@ -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)<<" ");

View File

@ -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);

View File

@ -2971,6 +2971,7 @@ private:
else
New = IRB.CreateLifetimeEnd(Ptr, Size);
(void)New;
DEBUG(dbgs() << " to: " << *New << "\n");
return true;
}