summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackSlotColoring.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-12-23 00:58:24 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-12-23 00:58:24 +0000
commit9b43f336205a63e8875f8b87fe0402f2e315369e (patch)
treed5d7af90a6e5163785c09f9c2f49ff7ff8013cb9 /llvm/lib/CodeGen/StackSlotColoring.cpp
parentf14bb1e98b21731ef7ddb732f18873162c05f29b (diff)
downloadbcm5719-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/StackSlotColoring.cpp')
-rw-r--r--llvm/lib/CodeGen/StackSlotColoring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp
index 9b7f553ed41..4a6ae60b9a8 100644
--- a/llvm/lib/CodeGen/StackSlotColoring.cpp
+++ b/llvm/lib/CodeGen/StackSlotColoring.cpp
@@ -646,7 +646,7 @@ StackSlotColoring::UnfoldAndRewriteInstruction(MachineInstr *MI, int OldFI,
} else {
SmallVector<MachineInstr*, 4> NewMIs;
bool Success = TII->unfoldMemoryOperand(MF, MI, Reg, false, false, NewMIs);
- Success = Success; // Silence compiler warning.
+ (void)Success; // Silence compiler warning.
assert(Success && "Failed to unfold!");
MachineInstr *NewMI = NewMIs[0];
MBB->insert(MI, NewMI);
OpenPOWER on IntegriCloud