]> granicus.if.org Git - clang/commitdiff
Tidy up now that PointerUnion has an operator== that works.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 16 May 2013 05:04:51 +0000 (05:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 16 May 2013 05:04:51 +0000 (05:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181983 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 3741bf12d51947dd165d792238aa74477da6501c..fbef525ce4f094d7c90d2e05735186b3436ec75f 100644 (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.