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/Transforms/Utils/DemoteRegToStack.cpp | |
parent | f14bb1e98b21731ef7ddb732f18873162c05f29b (diff) | |
download | llvm-9b43f336205a63e8875f8b87fe0402f2e315369e.zip llvm-9b43f336205a63e8875f8b87fe0402f2e315369e.tar.gz llvm-9b43f336205a63e8875f8b87fe0402f2e315369e.tar.bz2 |
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/Transforms/Utils/DemoteRegToStack.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp index 8e82a02c..8cc2649 100644 --- a/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/llvm/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -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()); |