From 247eb0abdcb1287c01c68ece083b3b48e0342873 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 29 Jun 2023 07:37:24 -0400 Subject: [PATCH] Fixed invalid return from GetSimdTypeString Fixed invalid return from GetSimdTypeString --- IDEHelper/Compiler/BfIRCodeGen.cpp | 2 +- IDEHelper/Compiler/BfIRCodeGen.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfIRCodeGen.cpp b/IDEHelper/Compiler/BfIRCodeGen.cpp index ae28322d..15315440 100644 --- a/IDEHelper/Compiler/BfIRCodeGen.cpp +++ b/IDEHelper/Compiler/BfIRCodeGen.cpp @@ -4981,7 +4981,7 @@ void BfIRCodeGen::SetActiveFunctionSimdType(BfIRSimdType type) mFunctionsUsingSimd[mActiveFunction] = type; } -const StringImpl& BfIRCodeGen::GetSimdTypeString(BfIRSimdType type) +String BfIRCodeGen::GetSimdTypeString(BfIRSimdType type) { switch (type) { diff --git a/IDEHelper/Compiler/BfIRCodeGen.h b/IDEHelper/Compiler/BfIRCodeGen.h index 9303622f..567a3990 100644 --- a/IDEHelper/Compiler/BfIRCodeGen.h +++ b/IDEHelper/Compiler/BfIRCodeGen.h @@ -234,7 +234,7 @@ public: void SetConfigConst(int idx, int value) override; void SetActiveFunctionSimdType(BfIRSimdType type); - const StringImpl& GetSimdTypeString(BfIRSimdType type); + String GetSimdTypeString(BfIRSimdType type); BfIRSimdType GetSimdTypeFromFunction(llvm::Function* function); llvm::Value* GetLLVMValue(int streamId);