Skip to content

Commit 079bf69

Browse files
committed
isValid()
1 parent d414f29 commit 079bf69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/MCDCState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct State {
4242
bool isValid() const { return ID != InvalidID; }
4343

4444
void update(unsigned I, IndicesTy &&X) {
45-
assert(ID != InvalidID);
45+
assert(isValid());
4646
BitmapIdx = I;
4747
Indices = std::move(X);
4848
}

0 commit comments

Comments
 (0)