If an expression is contains-error and its type is unknown (dependent), we
don't treat it as a null pointer constant.
Fix a recovery-ast crash on C.
Differential D84222
[AST][RecoveryExpr] Error-dependent expression should not be treat as a nullptr pointer constant. hokein on Jul 20 2020, 11:12 PM. Authored by
Details If an expression is contains-error and its type is unknown (dependent), we Fix a recovery-ast crash on C.
Diff Detail
Event Timeline
|
would it be clearer to say if (containsErrors()) return NPCK_NotNull at the top?
Only difference in behavior is not hitting llvm_unreachable if we have NPC_NeverValueDependent... do you think we actually want that?