Summary:
Reinstate the original behavior (Success(false, E)) before D54355 when this branch is
taken. This fixes spurious error of the following snippet:
extern char extern_var;
struct { int a; } a = {__builtin_constant_p(extern_var)};
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348037
91177308-0d34-0410-b5e6-
96231b3b80d8
// We can delay calculation of __builtin_constant_p until after
// inlining. Note: This diagnostic won't be shown to the user.
Info.FFDiag(E, diag::note_invalid_subexpr_in_const_expr);
- return false;
}
return Success(false, E);
}