mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
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:
parent
8c3a411cd6
commit
f1af1feeee
@ -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)<<" ");
|
||||
|
@ -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);
|
||||
|
@ -2971,6 +2971,7 @@ private:
|
||||
else
|
||||
New = IRB.CreateLifetimeEnd(Ptr, Size);
|
||||
|
||||
(void)New;
|
||||
DEBUG(dbgs() << " to: " << *New << "\n");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user