]> granicus.if.org Git - clang/commit
[ExprConstant] Try fixing __builtin_constant_p after D54355 (rC347417)
authorFangrui Song <maskray@google.com>
Fri, 30 Nov 2018 21:15:41 +0000 (21:15 +0000)
committerFangrui Song <maskray@google.com>
Fri, 30 Nov 2018 21:15:41 +0000 (21:15 +0000)
commit9842e28a419f27a7956afc6353c4414898ac25cd
treed7107fb18cc9300b462404542af414e3515b16c2
parentbe384d9d49efc21650840e53850cd0719cbbe5cc
[ExprConstant] Try fixing __builtin_constant_p after D54355 (rC347417)

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
lib/AST/ExprConstant.cpp