Fix the printing of constants. Patch by Stepan Dyatkovskiy!
[oota-llvm.git] / tools / llvm-diff / DifferenceEngine.cpp
index b240d8c5da5d1f452b0ad6630b015df9554026ee..435cd87fa7614bd90ac1ddec80ca8c0542a4fd30 100644 (file)
@@ -327,7 +327,7 @@ class FunctionDifferenceEngine {
         if (LCase) {
           if (TryUnify) tryUnify(LCase, RI->getSuccessor(I));
           LCases.erase(CaseValue);
-        } else if (!Difference) {
+        } else if (Complain || !Difference) {
           if (Complain)
             Engine.logf("right switch has extra case %r") << CaseValue;
           Difference = true;