mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -504,7 +504,7 @@ bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
|
||||
DEBUG(dbgs() << "Replace stores:\n";
|
||||
for (unsigned i = 0, e = Range.TheStores.size(); i != e; ++i)
|
||||
dbgs() << *Range.TheStores[i] << '\n';
|
||||
dbgs() << "With: " << *C << '\n'); C=C;
|
||||
dbgs() << "With: " << *C << '\n'); (void)C;
|
||||
|
||||
// Don't invalidate the iterator
|
||||
BBI = BI;
|
||||
@@ -932,6 +932,3 @@ bool MemCpyOpt::runOnFunction(Function &F) {
|
||||
MD = 0;
|
||||
return MadeChange;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user