Use utils::FunctionToVoidPtr for casting unresolvedSymbol.

This commit is contained in:
Frederich Munch 2017-01-27 14:35:13 -05:00 committed by sftnight
parent 94672dd0d0
commit b6afe909f3

View File

@ -154,9 +154,7 @@ void* IncrementalExecutor::HandleMissingFunction(const std::string& mangled_name
// << mangled_name << "'!\n";
}
// Avoid "ISO C++ forbids casting between pointer-to-function and
// pointer-to-object":
return (void*)reinterpret_cast<size_t>(unresolvedSymbol);
return utils::FunctionToVoidPtr(&unresolvedSymbol);
}
void* IncrementalExecutor::NotifyLazyFunctionCreators(const std::string& mangled_name)