mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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> {
|
||||
|
Reference in New Issue
Block a user