Преглед изворни кода

Fixed invalid return from GetSimdTypeString

Fixed invalid return from GetSimdTypeString
Brian Fiete пре 2 година
родитељ
комит
247eb0abdc
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      IDEHelper/Compiler/BfIRCodeGen.cpp
  2. 1 1
      IDEHelper/Compiler/BfIRCodeGen.h

+ 1 - 1
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)
 	{

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