Skip to content

Commit cdb33eb

Browse files
authored
Revert change CppInterOp.cpp
1 parent ceb8d67 commit cdb33eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,19 @@ std::string GetVersion() {
168168
}
169169

170170
std::string Demangle(const std::string& mangled_name) {
171+
#if CLANG_VERSION_MAJOR > 16
171172
#ifdef _WIN32
172173
std::string demangle = microsoftDemangle(mangled_name, nullptr, nullptr);
173174
#else
174175
std::string demangle = itaniumDemangle(mangled_name);
176+
#endif
177+
#else
178+
#ifdef _WIN32
179+
std::string demangle = microsoftDemangle(mangled_name.c_str(), nullptr,
180+
nullptr, nullptr, nullptr);
181+
#else
182+
std::string demangle =
183+
itaniumDemangle(mangled_name.c_str(), nullptr, nullptr, nullptr);
175184
#endif
176185
return demangle;
177186
}

0 commit comments

Comments
 (0)