Tidy up now that PointerUnion has an operator== that works.
llvm-svn: 181983
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 3741bf1..fbef525 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -1080,8 +1080,7 @@
// 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.