mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 22:36:06 +00:00
Revert "[clang] Fix a crash in constant evaluation"
This reverts commit a5ab650714d05c2e49ec158dc99156118a893027.
This commit is contained in:
parent
a5ab650714
commit
b58ed43a7f
@ -4794,11 +4794,6 @@ static bool getDefaultInitValue(QualType T, APValue &Result) {
|
||||
Result = APValue((const FieldDecl *)nullptr);
|
||||
return true;
|
||||
}
|
||||
// Can't access properties of an incomplete type.
|
||||
if (!RD->hasDefinition()) {
|
||||
Result = APValue();
|
||||
return false;
|
||||
}
|
||||
Result = APValue(APValue::UninitStruct(), RD->getNumBases(),
|
||||
std::distance(RD->field_begin(), RD->field_end()));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user