From 15ee892cfc06ff3251a5762df6023541a83aaae6 Mon Sep 17 00:00:00 2001 From: Francesco Biscani Date: Wed, 30 Aug 2023 13:51:03 +0200 Subject: [PATCH] Fix warning. --- src/detail/llvm_helpers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detail/llvm_helpers.cpp b/src/detail/llvm_helpers.cpp index 8008fd25a..b5da79b55 100644 --- a/src/detail/llvm_helpers.cpp +++ b/src/detail/llvm_helpers.cpp @@ -454,7 +454,6 @@ llvm::Value *llvm_math_intr(llvm_state &s, const std::string &intr_name, auto *scal_t = x_t->getScalarType(); auto &builder = s.builder(); - auto &context = s.context(); if (llvm_stype_can_use_math_intrinsics(s, scal_t)) { // We can use the LLVM intrinsics for the given scalar type. @@ -499,7 +498,7 @@ llvm::Value *llvm_math_intr(llvm_state &s, const std::string &intr_name, #if defined(HEYOKA_HAVE_REAL128) // NOTE: this handles both the scalar and vector cases. - if (scal_t == to_llvm_type(context, false)) { + if (scal_t == to_llvm_type(s.context(), false)) { return call_extern_vec(s, {args...}, f128_name); }