[llvm] [Offload] Use llvm::Error throughout liboffload internals (PR #140879)
Callum Fare via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 04:18:30 PDT 2025
================
@@ -61,7 +61,7 @@ void EmitOffloadImplFuncDecls(const RecordKeeper &Records, raw_ostream &OS) {
OS << GenericHeader;
for (auto *R : Records.getAllDerivedDefinitions("Function")) {
FunctionRec F{R};
- OS << formatv("{0}_impl_result_t {1}_impl(", PrefixLower, F.getName());
+ OS << formatv("llvm::Error {0}_impl(", F.getName());
----------------
callumfare wrote:
These declarations are used in the `llvm::offload` namespace, so you could just use `Error` here
https://github.com/llvm/llvm-project/pull/140879
More information about the llvm-commits
mailing list