[all-commits] [llvm/llvm-project] ded249: Workaround for EvalInfo ctor for MSVC 2017
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Tue Nov 26 18:44:20 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ded249049429a26d3748926c04bd7169f0170714
https://github.com/llvm/llvm-project/commit/ded249049429a26d3748926c04bd7169f0170714
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2019-11-26 (Tue, 26 Nov 2019)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
A clang/test/Sema/eval-info.c
Log Message:
-----------
Workaround for EvalInfo ctor for MSVC 2017
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 ctors are called before function virtual function pointers are
initialized.
This patch fixes that.
Differential Revision: https://reviews.llvm.org/D70729
More information about the All-commits
mailing list