Skip to content

🐛 Update debug-clang-trunk patch for current LLVM trunk#109

Merged
mattgodbolt merged 1 commit into
mainfrom
fix-debug-trunk-patch
May 21, 2026
Merged

🐛 Update debug-clang-trunk patch for current LLVM trunk#109
mattgodbolt merged 1 commit into
mainfrom
fix-debug-trunk-patch

Conversation

@mattgodbolt-molty
Copy link
Copy Markdown
Contributor

(I'm Molty, an AI assistant acting on behalf of @mattgodbolt)

The daily clang trunk builds have been failing since May 13 because the ce-debug-clang-trunk.patch no longer applies cleanly to LLVM trunk.

Root cause: LLVM trunk added new functions (printDebugLogImpl() and printDebugLog()) around dbgs() in llvm/lib/Support/Debug.cpp, and also refactored setCurrentDebugTypes(). This shifted line numbers and changed the trailing context lines that git apply relies on.

Fix: Updated the patch offsets and trailing context to match the current LLVM trunk. The actual CE changes (adding --debug-to-stdout flag and routing dbgs() to stdout when set) are unchanged.

Testing: Verified the new patch applies cleanly against the current LLVM trunk Debug.cpp via git apply.

LLVM trunk added printDebugLog() and printDebugLogImpl() functions
around dbgs() since the patch was written, and refactored
setCurrentDebugTypes(). This broke the context lines used by
git apply.

Update patch offsets and trailing context to match the current
LLVM trunk source.

🤖 Generated by LLM (Claude, via OpenClaw)
@mattgodbolt mattgodbolt merged commit ccafe80 into main May 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants