Author: rsmith
Date: Thu May 16 00:04:51 2013
New Revision: 181983
URL: http://llvm.org/viewvc/llvm-project?rev=181983&view=rev
Log:
Tidy up now that PointerUnion has an operator== that works.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=181983&r1=181982&r2=181983&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Thu May 16 00:04:51 2013
@@ -1080,8 +1080,7 @@ static bool CheckLiteralType(EvalInfo &I
// 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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits