From: Richard Smith Date: Thu, 16 May 2013 05:04:51 +0000 (+0000) Subject: Tidy up now that PointerUnion has an operator== that works. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c45c8dd54bc54f9be46546fdf002dc9fe07d1715;p=clang 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 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 3741bf12d5..fbef525ce4 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -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.