Skip to content

Commit 1aeebbf

Browse files
committed
Use std::free for hip
1 parent 36c9b51 commit 1aeebbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/ddc/print.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ void print_demangled_type_name(std::ostream& os)
247247
{
248248
int status;
249249

250-
std::unique_ptr<char, decltype(free)*>
251-
demangled_name(abi::__cxa_demangle(typeid(Type).name(), nullptr, 0, &status), free);
250+
std::unique_ptr<char, decltype(std::free)*> demangled_name(
251+
abi::__cxa_demangle(typeid(Type).name(), nullptr, 0, &status),
252+
std::free);
252253
if (status != 0) {
253254
os << "Error demangling dimension name: " << status;
254255
return;

0 commit comments

Comments
 (0)