add a fixme, inheriting from PointerIntPair is gross :)

llvm-svn: 87048
This commit is contained in:
Chris Lattner 2009-11-13 00:57:01 +00:00
parent 2f4c37425b
commit 956d71a63a
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ template<typename decl_type>
class Redeclarable {
protected:
// FIXME: PointerIntPair is a value class that should not be inherited from.
// This should change to using containment.
struct DeclLink : public llvm::PointerIntPair<decl_type *, 1, bool> {
DeclLink(decl_type *D, bool isLatest)
: llvm::PointerIntPair<decl_type *, 1, bool>(D, isLatest) { }