Skip to content

Commit 9eaf0ab

Browse files
committed
Revert "[lldb/Utility] Provide a stringify_append overload for function pointers."
Temporarily reverts commit d10386e because it breaks the Windows build. MSVC complains about an ambiguous call to an overloaded function.
1 parent 944cc5e commit 9eaf0ab

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lldb/include/lldb/Utility/ReproducerInstrumentation.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,12 @@ inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) {
3434

3535
template <typename T>
3636
inline void stringify_append(llvm::raw_string_ostream &ss, T *t) {
37-
ss << static_cast<void *>(t);
37+
ss << reinterpret_cast<void *>(t);
3838
}
3939

4040
template <typename T>
4141
inline void stringify_append(llvm::raw_string_ostream &ss, const T *t) {
42-
ss << static_cast<const void *>(t);
43-
}
44-
45-
template <typename T, typename... Args>
46-
inline void stringify_append(llvm::raw_string_ostream &ss, T (*t)(Args...)) {
47-
ss << "function pointer";
42+
ss << reinterpret_cast<const void *>(t);
4843
}
4944

5045
template <>

0 commit comments

Comments
 (0)