diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index b1df2760d9760e9f05ee81e7fda23538acbd2c3a..6d42bc67f6c8b165656c6de42fbc28ab875b4a2b 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1072,7 +1072,7 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
     ASSERT(program_id != 0);
 
     std::string transferable_shader_cache_file_path;
-    const std::string open_target = "Transferable Shader Cache";
+    constexpr char open_target[] = "Transferable Shader Cache";
     const std::string tranferable_shader_cache_folder =
         FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir) + "opengl" + DIR_SEP "transferable";