[ptr-traits] Refactor how PointerIntPair does its pointer manipulation
to isolate it in a dependent helper class. Without doing this, we end up requiring all of the pointer traits the moment you even define a PointerIntPair. That makes them *incredibly* hard to use, for example you can't use them at all inside a class for pointers to that class! This change sinks all the logic into a helper template class that only needs to be fully instantiated when *using* the PointerIntPair. We still get compile-time checking, but it is deferred long enough to make tradition out-of-line method definitions (or just the normal deferred method body parsing) sufficient to handle cycling references. llvm-svn: 256618
Loading
Please sign in to comment