mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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:
@ -129,7 +129,7 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
|
||||
for (unsigned i = 0, e = P->getNumIncomingValues(); i < e; ++i) {
|
||||
if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) {
|
||||
assert(II->getParent() != P->getIncomingBlock(i) &&
|
||||
"Invoke edge not supported yet"); II=II;
|
||||
"Invoke edge not supported yet"); (void)II;
|
||||
}
|
||||
new StoreInst(P->getIncomingValue(i), Slot,
|
||||
P->getIncomingBlock(i)->getTerminator());
|
||||
|
Reference in New Issue
Block a user