summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PointerLikeTypeTraits.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-03 00:26:01 +0000
committerChris Lattner <sabre@nondot.org>2009-04-03 00:26:01 +0000
commitb7a00daa1165576dd2bb9d17970c249d536f4a82 (patch)
tree9ea76cf2d74afc2ff76b0aec9657b12d62e7cb00 /include/llvm/Support/PointerLikeTypeTraits.h
parent8f9643f0f768d5dcff0ffea1de6191dba1b5b083 (diff)
downloadllvm-b7a00daa1165576dd2bb9d17970c249d536f4a82.tar.gz
llvm-b7a00daa1165576dd2bb9d17970c249d536f4a82.tar.bz2
llvm-b7a00daa1165576dd2bb9d17970c249d536f4a82.tar.xz
Work around an apparent GCC miscompilation by specializing different,
this fixes a regression on some compilers from r68147. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PointerLikeTypeTraits.h')
-rw-r--r--include/llvm/Support/PointerLikeTypeTraits.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/llvm/Support/PointerLikeTypeTraits.h b/include/llvm/Support/PointerLikeTypeTraits.h
index 226dacf361..c5f79ccb83 100644
--- a/include/llvm/Support/PointerLikeTypeTraits.h
+++ b/include/llvm/Support/PointerLikeTypeTraits.h
@@ -58,20 +58,6 @@ public:
enum { NumLowBitsAvailable = 3 };
};
-// Pointers to pointers are only 4-byte aligned on 32-bit systems.
-template<typename T>
-class PointerLikeTypeTraits<T**> {
-public:
- static inline void *getAsVoidPointer(T** P) { return P; }
- static inline T **getFromVoidPointer(void *P) {
- return static_cast<T**>(P);
- }
- enum { NumLowBitsAvailable = 2 };
-};
-
-
-
-
// Provide PointerLikeTypeTraits for uintptr_t.
template<>
class PointerLikeTypeTraits<uintptr_t> {