From: Philip Pfaffe Date: Fri, 20 Jul 2018 17:24:11 +0000 (+0000) Subject: [Any] Fix a typo: didn't use the correct argument X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dac3fac6c916122c7e2ec07b681c6191fb87c7e;p=llvm [Any] Fix a typo: didn't use the correct argument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337583 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Any.h b/include/llvm/ADT/Any.h index f62d6039bc9..2be15bb1d88 100644 --- a/include/llvm/ADT/Any.h +++ b/include/llvm/ADT/Any.h @@ -110,7 +110,7 @@ template bool any_isa(const Any &Value) { template T any_cast(const Any &Value) { using U = typename std::remove_cv::type>::type; - return static_cast(*any_cast(&operand)); + return static_cast(*any_cast(&Value)); } template T any_cast(Any &Value) {