We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pop_back_val()
1 parent fd19137 commit 3fe5a0cCopy full SHA for 3fe5a0c
clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -770,12 +770,10 @@ struct MCDCCoverageBuilder {
770
/// Pop and return the LHS Decision ([0,0] if not set).
771
mcdc::ConditionIDs pop() {
772
if (!CGM.getCodeGenOpts().MCDCCoverage || NotMapped)
773
- return DecisionStack.front();
+ return DecisionStackSentinel;
774
775
assert(DecisionStack.size() > 1);
776
- mcdc::ConditionIDs D = DecisionStack.back();
777
- DecisionStack.pop_back();
778
- return D;
+ return DecisionStack.pop_back_val();
779
}
780
781
/// Return the total number of conditions and reset the state. The number of
0 commit comments