Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build/patches/ce-clang-rocm-6.4.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 0d4ca5299689..1a9ecffae38c 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -1099,10 +1099,10 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
std::make_unique<llvm::raw_fd_ostream>(FD, true));
};

- auto AddBuffer = [&](size_t Task, const Twine &moduleName,
+ auto AddBuffer = [&](size_t Task, const Twine &ModuleName,
std::unique_ptr<MemoryBuffer> MB) {
- auto Stream = *AddStream(Task, ModuleName);
- Stream->OS << MB->getBuffer();
+ auto Stream = AddStream(Task, ModuleName);
+ *Stream->OS << MB->getBuffer();
check(Stream->commit(), "Failed to commit cache");
};