r196959 - Tiny cleanup, as suggested by David Blaikie.
Richard Smith
richard-llvm at metafoo.co.uk
Tue Dec 10 12:56:03 PST 2013
Author: rsmith
Date: Tue Dec 10 14:56:03 2013
New Revision: 196959
URL: http://llvm.org/viewvc/llvm-project?rev=196959&view=rev
Log:
Tiny cleanup, as suggested by David Blaikie.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=196959&r1=196958&r2=196959&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Tue Dec 10 14:56:03 2013
@@ -3375,8 +3375,8 @@ struct BaseAndFieldInfo {
if (!Record->isUnion())
return false;
- FieldDecl *Active = ActiveUnionMember.lookup(Record->getCanonicalDecl());
- if (Active)
+ if (FieldDecl *Active =
+ ActiveUnionMember.lookup(Record->getCanonicalDecl()))
return Active != Field->getCanonicalDecl();
// In an implicit copy or move constructor, ignore any in-class initializer.
More information about the cfe-commits
mailing list