From f6fd3d3fcf7eeeca3cd5774db1f896838b2b56dd Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Tue, 22 Oct 2013 08:27:19 +0000 Subject: Remove incorrect assert. If we run into the second preprocessor branch chain, the first branch chain might have already set the maximum branch count on that level to something > 0. Fixes PR17645. llvm-svn: 193153 --- clang/lib/Format/UnwrappedLineParser.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'clang/lib/Format') diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 949f5a308b2..e0b090f6abc 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -485,7 +485,6 @@ void UnwrappedLineParser::parsePPEndIf() { assert(PPBranchLevel < (int)PPLevelBranchIndex.size()); if (PPBranchLevel >= 0 && !PPChainBranchIndex.empty()) { if (PPChainBranchIndex.top() + 1 > PPLevelBranchCount[PPBranchLevel]) { - assert(PPLevelBranchCount[PPBranchLevel] == 0); PPLevelBranchCount[PPBranchLevel] = PPChainBranchIndex.top() + 1; } } -- cgit v1.2.3