[PATCH] D70729: Workaround for EvalInfo ctor for MSVC 2017

2019-11-26 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGded249049429: Workaround for EvalInfo ctor for MSVC 2017 (authored by yaxunl). Herald added a project: clang. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D7

[PATCH] D70729: Workaround for EvalInfo ctor for MSVC 2017

2019-11-26 Thread Michael Liao via Phabricator via cfe-commits
hliao accepted this revision. hliao added a comment. This revision is now accepted and ready to land. LGTM, anyway calling a virtual function inside the constructor is not encouraged. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D70729/new/ https://reviews.llvm.org/D70729 __

[PATCH] D70729: Workaround for EvalInfo ctor for MSVC 2017

2019-11-26 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 231101. yaxunl added a comment. add a test CHANGES SINCE LAST ACTION https://reviews.llvm.org/D70729/new/ https://reviews.llvm.org/D70729 Files: clang/lib/AST/ExprConstant.cpp clang/test/Sema/eval-info.c Index: clang/test/Sema/eval-info.c ==

[PATCH] D70729: Workaround for EvalInfo ctor for MSVC 2017

2019-11-26 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added reviewers: rjmccall, hliao. Current EvalInfo ctor causes EnableNewConstInterp to be true even though it is supposed to be false on MSVC 2017. This is because a virtual function getLangOpts() is called in member initializer lists, whereas on MSVC member ct