================ @@ -416,8 +416,10 @@ class RVVIntrinsic { RVVTypePtr getOutputType() const { return OutputType; } const RVVTypes &getInputTypes() const { return InputTypes; } llvm::StringRef getBuiltinName() const { return BuiltinName; } - llvm::StringRef getName() const { return Name; } - llvm::StringRef getOverloadedName() const { return OverloadedName; } + llvm::StringRef getName() const { return "__riscv_" + Name; } ---------------- topperc wrote:
That raw pointer is allocated on the heap. It has the same lifetime as the std::string temporary. https://github.com/llvm/llvm-project/pull/77487 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits