From 645999ab99ef0a0f28de2bce7fbdb629b39c3d6d Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Tue, 31 Oct 2023 16:50:08 -0400 Subject: [PATCH] refactor(fe): avoid silly dereference then addressof --- src/quick-lint-js/fe/expression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quick-lint-js/fe/expression.h b/src/quick-lint-js/fe/expression.h index 18be70c4c9..e1fc8e2838 100644 --- a/src/quick-lint-js/fe/expression.h +++ b/src/quick-lint-js/fe/expression.h @@ -304,14 +304,14 @@ template Derived expression_cast(Expression *p) { // TODO(strager): Assert that Derived matches the Expression's run-time // type. - return static_cast(&*p); + return static_cast(p); } template Derived expression_cast(const Expression *p) { // TODO(strager): Assert that Derived matches the Expression's run-time // type. - return static_cast(&*p); + return static_cast(p); } template