Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions clang/lib/CIR/CodeGen/CIRGenClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ static void emitMemberInitializer(CIRGenFunction &cgf,
lhs.isVolatileQualified());
// Ensure that we destroy the objects if an exception is thrown later in
// the constructor.
QualType::DestructionKind dtorKind = fieldType.isDestructedType();
assert(!cgf.needsEHCleanup(dtorKind) &&
assert(!cgf.needsEHCleanup(fieldType.isDestructedType()) &&
"Arrays of non-record types shouldn't need EH cleanup");
return;
}
Expand Down
Loading