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);