Resolves an old FIXME.
No callers depend on this giving the right answer so I haven't been able to
cook up a useful test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209970
91177308-0d34-0410-b5e6-
96231b3b80d8
// C++0x [class.mem]p1:
// The enumerators of an unscoped enumeration defined in
// the class are members of the class.
- // FIXME: support C++0x scoped enumerations.
if (isa<EnumDecl>(DC))
- DC = DC->getParent();
+ DC = DC->getRedeclContext();
return DC->isRecord();
}