[llvm] [doc] Fix markdown bug in LangRef docs for EH model (PR #226025)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 22:35:57 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Reid Kleckner (rnk)

<details>
<summary>Changes</summary>

I'm pretty sure this was my fault.

---
Full diff: https://github.com/llvm/llvm-project/pull/226025.diff


1 Files Affected:

- (modified) llvm/docs/LangRef.md (+7-3) 


``````````diff
diff --git a/llvm/docs/LangRef.md b/llvm/docs/LangRef.md
index 2d00161ecdfff..4966065f2207c 100644
--- a/llvm/docs/LangRef.md
+++ b/llvm/docs/LangRef.md
@@ -9557,7 +9557,8 @@ lowered. The value is a string and must be one of:
 
 When the flag is absent, the target's default thread model is used. The flag
 must use the `error` merge behavior. For example:
-```
+
+```llvm
 !llvm.module.flags = !{!0}
 !0 = !{i32 1, !"thread-model", !"single"}
 ```
@@ -9570,15 +9571,18 @@ interpretation target-specific.
 
 For example, RISC-V uses names such as `"ilp32"`, `"ilp32d"`, `"lp64"`, and
 `"lp64d"`:
-```
+
+```llvm
 !llvm.module.flags = !{!0}
 !0 = !{i32 1, !"target-abi", !"lp64d"}
 ```
 while ARM uses names such as `"aapcs"` and `"apcs-gnu"`:
-```
+
+```llvm
 !llvm.module.flags = !{!0}
 !0 = !{i32 1, !"target-abi", !"aapcs"}
 ...
+```
 
 ### Exception Model Module Flags Metadata
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/226025


More information about the llvm-commits mailing list