fix: use std::string for JIT entrypoint funcname

As we store the funcname for the entrypoint for later use, a pointer
might point to some random memory when used as there is no special
management for that name at the higher levels.
This commit is contained in:
youben11
2021-10-28 15:55:54 +01:00
committed by Andi Drebes
parent 3ae924e174
commit d738104c4b

View File

@@ -104,7 +104,7 @@ public:
private:
mlir::LLVM::LLVMFunctionType type;
llvm::StringRef name;
std::string name;
std::unique_ptr<mlir::ExecutionEngine> engine;
};