From d4bef0225cbf01092923a9b778e21fc9d7a79a06 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Thu, 31 Oct 2024 09:35:16 +0000 Subject: [PATCH] [SPIR-V] Add missing ScalarOpts library Fixes an "undefined reference to `llvm::createRegToMemWrapperPass()'" linker error introduced by cba70550ccf5 ("[SPIR-V] Fix BB ordering & register lifetime (#111026)", 2024-10-30). --- llvm/lib/Target/SPIRV/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/SPIRV/CMakeLists.txt b/llvm/lib/Target/SPIRV/CMakeLists.txt index 326343ae27814..aa83d997578fd 100644 --- a/llvm/lib/Target/SPIRV/CMakeLists.txt +++ b/llvm/lib/Target/SPIRV/CMakeLists.txt @@ -56,6 +56,7 @@ add_llvm_target(SPIRVCodeGen MC SPIRVDesc SPIRVInfo + ScalarOpts SelectionDAG Support Target