From 6ce72432215dd686f7c073616a7f3aa34e7d2b8d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 22 Apr 2021 15:20:49 +0300 Subject: [PATCH] Fix an issue with folding the sole argument of a conversion --- source/glsl/optimize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 2e7f8aa7..593a3222 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -804,7 +804,7 @@ void ConstantFolder::visit(FunctionCall &call) const BasicTypeDeclaration *basic = dynamic_cast(call.type); if(basic) { - call.arguments[0]->visit(*this); + visit(call.arguments[0]); bool can_fold = r_constant; r_constant = false; if(!can_fold) -- 2.43.0