diff options
author | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-08-12 14:54:45 +0000 |
commit | a41634e307caa823b1e050eb8b4f67fdf4b8e415 (patch) | |
tree | 0172f17f10f9238b605692f703516f3d271ff563 /llvm/tools/llvm-diff/DifferenceEngine.cpp | |
parent | 50aa2d480ced9bb792d438f6ff92fe06afa6b84e (diff) | |
download | bcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.tar.gz bcm5719-llvm-a41634e307caa823b1e050eb8b4f67fdf4b8e415.zip |
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled.
llvm-svn: 137460
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
-rw-r--r-- | llvm/tools/llvm-diff/DifferenceEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-diff/DifferenceEngine.cpp b/llvm/tools/llvm-diff/DifferenceEngine.cpp index ba2cec29925..b240d8c5da5 100644 --- a/llvm/tools/llvm-diff/DifferenceEngine.cpp +++ b/llvm/tools/llvm-diff/DifferenceEngine.cpp @@ -195,12 +195,12 @@ class FunctionDifferenceEngine { DifferenceEngine::Context C(Engine, L, R); BasicBlock::iterator LI = L->begin(), LE = L->end(); - BasicBlock::iterator RI = R->begin(), RE = R->end(); + BasicBlock::iterator RI = R->begin(); llvm::SmallVector<std::pair<Instruction*,Instruction*>, 20> TentativePairs; do { - assert(LI != LE && RI != RE); + assert(LI != LE && RI != R->end()); Instruction *LeftI = &*LI, *RightI = &*RI; // If the instructions differ, start the more sophisticated diff |