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:
Richard Smith 2013-05-16 05:04:51 +00:00
Родитель 1229e20dfa
Коммит c45c8dd54b
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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.