aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-29 08:59:27 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-29 08:59:27 +0000
commit02e116cb060dc7694bf0ea911bace0340114c6ba (patch)
tree1c35a4f9903d58542f5cc5906991acdbbdeba7a7 /tools
parentdfb44ac690b9404469a485e252f4ac026bcdefa1 (diff)
When unifying instructions during a block diff, actually complain about
any differences we see. This should only happen if there are "non-structural" differences between the instructions, i.e. differences which wouldn't cause diff to return true. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-diff/DifferenceEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-diff/DifferenceEngine.cpp b/tools/llvm-diff/DifferenceEngine.cpp
index 769dc0ac10..d9fbc57d2d 100644
--- a/tools/llvm-diff/DifferenceEngine.cpp
+++ b/tools/llvm-diff/DifferenceEngine.cpp
@@ -549,7 +549,7 @@ void FunctionDifferenceEngine::runBlockDiff(BasicBlock::iterator LStart,
{
Instruction *L = &*LI, *R = &*RI;
DifferenceEngine::Context C(Engine, L, R);
- diff(L, R, false, true); // unify successors
+ diff(L, R, true, true); // complain and unify successors
Values[L] = R; // make non-tentative
Diff.addMatch(L, R);
}