diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-13 00:57:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-13 00:57:01 +0000 |
commit | efc18e41f122b6ccac507bd9ec1aa7cb8845c2db (patch) | |
tree | 0c84ba8306cef4123dbafb69a371795d895cd524 | |
parent | c86804bc9c3f1953520b59084c9ad75104aba123 (diff) |
add a fixme, inheriting from PointerIntPair is gross :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87048 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Redeclarable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/Redeclarable.h b/include/clang/AST/Redeclarable.h index 1e6871ff3b..c04f3cd4e3 100644 --- a/include/clang/AST/Redeclarable.h +++ b/include/clang/AST/Redeclarable.h @@ -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) { } |