зеркало из https://github.com/microsoft/clang-1.git
Tidy up now that PointerUnion has an operator== that works.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1229e20dfa
Коммит
c45c8dd54b
|
@ -1080,8 +1080,7 @@ static bool CheckLiteralType(EvalInfo &Info, const Expr *E,
|
|||
// constexpr constructors for o and its subobjects even if those objects
|
||||
// are of non-literal class types.
|
||||
if (Info.getLangOpts().CPlusPlus1y && This &&
|
||||
Info.EvaluatingDecl.getOpaqueValue() ==
|
||||
This->getLValueBase().getOpaqueValue())
|
||||
Info.EvaluatingDecl == This->getLValueBase())
|
||||
return true;
|
||||
|
||||
// Prvalue constant expressions must be of literal types.
|
||||
|
|
Загрузка…
Ссылка в новой задаче