From: Silviu Baranga Date: Mon, 2 Apr 2012 15:46:46 +0000 (+0000) Subject: Second part for the 153874 one X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=545b962f1565eaf9ba0f7dfa1b0a74c43359022d;p=oota-llvm.git Second part for the 153874 one git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153875 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index 10e04a60ddd..9b676f21a1d 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -552,12 +552,12 @@ void Filter::emit(raw_ostream &o, unsigned &Indentation) const { // encoding bits do not match exactly. if (!DefaultCase) { ++Indentation; ++Indentation; } - bool finished = filterIterator->second->emit(o, Indentation); + filterIterator->second->emit(o, Indentation); // For top level default case, there's no need for a break statement. if (Owner->isTopLevel() && DefaultCase) break; - if (!finished) - o.indent(Indentation) << "break;\n"; + + o.indent(Indentation) << "break;\n"; if (!DefaultCase) { --Indentation; --Indentation; } }