aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/AddrModeMatcher.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/Transforms/Utils/AddrModeMatcher.cpp
parentf14bb1e98b21731ef7ddb732f18873162c05f29b (diff)
downloadllvm-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/AddrModeMatcher.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/AddrModeMatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
index b1cef96..be7bed1 100644
--- a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
+++ b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp
@@ -568,7 +568,7 @@ IsProfitableToFoldIntoAddressingMode(Instruction *I, ExtAddrMode &AMBefore,
MemoryInst, Result);
Matcher.IgnoreProfitability = true;
bool Success = Matcher.MatchAddr(Address, 0);
- Success = Success; assert(Success && "Couldn't select *anything*?");
+ (void)Success; assert(Success && "Couldn't select *anything*?");
// If the match didn't cover I, then it won't be shared by it.
if (std::find(MatchedAddrModeInsts.begin(), MatchedAddrModeInsts.end(),