From 3dac3fac6c916122c7e2ec07b681c6191fb87c7e Mon Sep 17 00:00:00 2001 From: Philip Pfaffe Date: Fri, 20 Jul 2018 17:24:11 +0000 Subject: [PATCH] [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 --- include/llvm/ADT/Any.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1