From 2628620b62d57ca68a2df7220b28c05852a9dd98 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 llvm-svn: 337583 --- llvm/include/llvm/ADT/Any.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/Any.h b/llvm/include/llvm/ADT/Any.h index f62d603..2be15bb 100644 --- a/llvm/include/llvm/ADT/Any.h +++ b/llvm/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.7.4