Skip to content

Commit b58ed43

Browse files
committed
Revert "[clang] Fix a crash in constant evaluation"
This reverts commit a5ab650.
1 parent a5ab650 commit b58ed43

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4794,11 +4794,6 @@ static bool getDefaultInitValue(QualType T, APValue &Result) {
47944794
Result = APValue((const FieldDecl *)nullptr);
47954795
return true;
47964796
}
4797-
// Can't access properties of an incomplete type.
4798-
if (!RD->hasDefinition()) {
4799-
Result = APValue();
4800-
return false;
4801-
}
48024797
Result = APValue(APValue::UninitStruct(), RD->getNumBases(),
48034798
std::distance(RD->field_begin(), RD->field_end()));
48044799

0 commit comments

Comments
 (0)