Tidy up now that PointerUnion has an operator== that works.

llvm-svn: 181983
This commit is contained in:
Richard Smith 2013-05-16 05:04:51 +00:00
parent 7242186b10
commit 37dc92eb4c
1 changed files with 1 additions and 2 deletions

View File

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