]> granicus.if.org Git - clang/commitdiff
add a fixme, inheriting from PointerIntPair is gross :)
authorChris Lattner <sabre@nondot.org>
Fri, 13 Nov 2009 00:57:01 +0000 (00:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Nov 2009 00:57:01 +0000 (00:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87048 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Redeclarable.h

index 1e6871ff3b9c5e7d736787e6aaf91f0c538cbfcc..c04f3cd4e3a3016b2adf0c46f5e991f6baefff1f 100644 (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) { }