Skip to content

[BoundsSafety][doc] Fix a typo #126247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

pfusik
Copy link
Contributor

@pfusik pfusik commented Feb 7, 2025

No description provided.

@pfusik pfusik requested a review from rapidsna February 7, 2025 14:26
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Feb 7, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 7, 2025

@llvm/pr-subscribers-clang

Author: Piotr Fusik (pfusik)

Changes

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

2 Files Affected:

  • (modified) clang/docs/BoundsSafety.rst (+3-3)
  • (modified) clang/docs/BoundsSafetyImplPlans.rst (+1-1)
diff --git a/clang/docs/BoundsSafety.rst b/clang/docs/BoundsSafety.rst
index e24c69d8c7855f3..3d3d7ea3eb41be9 100644
--- a/clang/docs/BoundsSafety.rst
+++ b/clang/docs/BoundsSafety.rst
@@ -777,13 +777,13 @@ the transformed pseudo code of function ``alloc_buf()`` in the example below.
       size_t count;
    } sized_buf_t;
 
-   void alloc_buf(sized_buf_t *sbuf, sized_t nelems) {
+   void alloc_buf(sized_buf_t *sbuf, size_t nelems) {
       sbuf->buf = (int *)malloc(sizeof(int) * nelems);
       sbuf->count = nelems;
    }
 
    // Transformed pseudo code:
-   void alloc_buf(sized_buf_t *sbuf, sized_t nelems) {
+   void alloc_buf(sized_buf_t *sbuf, size_t nelems) {
       // Materialize RHS values:
       int *tmp_ptr = (int *)malloc(sizeof(int) * nelems);
       int tmp_count = nelems;
@@ -1003,4 +1003,4 @@ Try it out
 
 Your feedback on the programming model is valuable. You may want to follow the
 instruction in :doc:`BoundsSafetyAdoptionGuide` to play with ``-fbounds-safety``
-and please send your feedback to `Yeoul Na <mailto:[email protected]>`_.
\ No newline at end of file
+and please send your feedback to `Yeoul Na <mailto:[email protected]>`_.
diff --git a/clang/docs/BoundsSafetyImplPlans.rst b/clang/docs/BoundsSafetyImplPlans.rst
index 93c2ed7b4340295..34276c920f31e2a 100644
--- a/clang/docs/BoundsSafetyImplPlans.rst
+++ b/clang/docs/BoundsSafetyImplPlans.rst
@@ -134,7 +134,7 @@ same basic block and without side effect in between.
       int *__counted_by(count) buf; size_t count;
    } sized_buf_t;
 
-   void alloc_buf(sized_buf_t *sbuf, sized_t nelems) {
+   void alloc_buf(sized_buf_t *sbuf, size_t nelems) {
       sbuf->buf = (int *)malloc(sizeof(int) * nelems);
       sbuf->count = nelems;
    }

@hstk30-hw hstk30-hw merged commit 3a66eba into llvm:main Feb 10, 2025
11 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Feb 10, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla-2stage running on linaro-g3-01 while building clang at step 12 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/4907

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
...
PASS: lld :: MachO/order-file.s (96468 of 96478)
PASS: lld :: MachO/weak-definition-direct-fetch.s (96469 of 96478)
PASS: lld :: wasm/libsearch.s (96470 of 96478)
PASS: mlgo-utils :: corpus/extract_ir_test.py (96471 of 96478)
PASS: lld :: MachO/loh-adrp-add.s (96472 of 96478)
PASS: lld :: wasm/lto/thinlto.ll (96473 of 96478)
PASS: libFuzzer-aarch64-default-Linux :: value-profile-switch.test (96474 of 96478)
PASS: libFuzzer-aarch64-default-Linux :: strncmp.test (96475 of 96478)
PASS: lld :: MinGW/driver.test (96476 of 96478)
PASS: libFuzzer-aarch64-default-Linux :: value-profile-load.test (96477 of 96478)
command timed out: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=1811.549114

Icohedron pushed a commit to Icohedron/llvm-project that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants