diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-12-23 00:58:24 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-12-23 00:58:24 +0000 |
commit | 9b43f336205a63e8875f8b87fe0402f2e315369e (patch) | |
tree | d5d7af90a6e5163785c09f9c2f49ff7ff8013cb9 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | f14bb1e98b21731ef7ddb732f18873162c05f29b (diff) | |
download | bcm5719-llvm-9b43f336205a63e8875f8b87fe0402f2e315369e.tar.gz bcm5719-llvm-9b43f336205a63e8875f8b87fe0402f2e315369e.zip |
Change all self assignments X=X to (void)X, so that we can turn on a
new gcc warning that complains on self-assignments and
self-initializations.
llvm-svn: 122458
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 0875257550b..b18f62be005 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -934,7 +934,7 @@ LiveInterval *RALinScan::hasNextReloadInterval(LiveInterval *cur) { void RALinScan::DowngradeRegister(LiveInterval *li, unsigned Reg) { bool isNew = DowngradedRegs.insert(Reg); - isNew = isNew; // Silence compiler warning. + (void)isNew; // Silence compiler warning. assert(isNew && "Multiple reloads holding the same register?"); DowngradeMap.insert(std::make_pair(li->reg, Reg)); for (const unsigned *AS = tri_->getAliasSet(Reg); *AS; ++AS) { |