1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[Any] Fix a typo: didn't use the correct argument

llvm-svn: 337583
This commit is contained in:
Philip Pfaffe 2018-07-20 17:24:11 +00:00
parent f595ea47c3
commit b9adc67df4

View File

@ -110,7 +110,7 @@ template <typename T> bool any_isa(const Any &Value) {
template <class T> T any_cast(const Any &Value) {
using U =
typename std::remove_cv<typename std::remove_reference<T>::type>::type;
return static_cast<T>(*any_cast<U>(&operand));
return static_cast<T>(*any_cast<U>(&Value));
}
template <class T> T any_cast(Any &Value) {