Tidy dwarf1 cached section contents
[binutils-gdb.git] / gdb / c-exp.h
index cf53e92cf182ce586d8697311a8653c92f527c3d..51e2d26eb2ef90f8cb1f3febe26c9f1e6e6001c7 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions for C expressions
 
-   Copyright (C) 2020-2022 Free Software Foundation, Inc.
+   Copyright (C) 2020-2023 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -138,7 +138,7 @@ public:
     value *lhs
       = std::get<0> (this->m_storage)->evaluate (nullptr, exp, noside);
     value *rhs
-      = std::get<1> (this->m_storage)->evaluate (value_type (lhs), exp,
+      = std::get<1> (this->m_storage)->evaluate (lhs->type (), exp,
                                                 noside);
     return FUNC (expect_type, exp, noside, OP, lhs, rhs);
   }