Skip to content
Snippets Groups Projects
Commit 8c93a657 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add workaround dealing with a clang bug

Same bug as previously. Should try again to build a simple reproducer...
parent 4e529e65
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -74,10 +74,14 @@ class BuiltinFunctionEmbedder : public IBuiltinFunctionEmbedder
} else {
throw std::runtime_error("unexpected argument types while casting: expecting EmbeddedData");
}
} else if constexpr (std::is_same_v<Ti_Type, FunctionId> and std::is_same_v<Vi_Type, uint64_t>) {
} else if constexpr (std::is_same_v<Ti_Type, FunctionId>) {
if constexpr (std::is_same_v<Vi_Type, uint64_t>) {
std::get<I>(t) = FunctionId{v_i};
throw std::runtime_error(
"WIP: should get better descriptor, FunctionId should at least refer to the symbol table.");
} else {
throw std::runtime_error("unexpected argument types while casting: expecting uint64");
}
} else {
std::ostringstream os;
os << "unexpected argument types while casting " << demangle<Vi_Type>() << " -> " << demangle<Ti_Type>()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment