[llvm] 6f9bce9 - [docs] Fix debug and strict aliasing typo (#140071) (#154861)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 10:02:32 PDT 2025
Author: Justin Riddell
Date: 2025-08-22T13:02:28-04:00
New Revision: 6f9bce9e0518f77acca07678e75ce0af6384a429
URL: https://github.com/llvm/llvm-project/commit/6f9bce9e0518f77acca07678e75ce0af6384a429
DIFF: https://github.com/llvm/llvm-project/commit/6f9bce9e0518f77acca07678e75ce0af6384a429.diff
LOG: [docs] Fix debug and strict aliasing typo (#140071) (#154861)
See https://github.com/llvm/llvm-project/issues/140071, I concluded that
removing the typo was the best thing after looking into the commit.
Happy to be told if this is incorrect and a different change would be
better
Added:
Modified:
clang/docs/UsersManual.rst
llvm/include/llvm/Support/Debug.h
Removed:
################################################################################
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index c7039290ec6d5..0e85c8109fd5e 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -2635,7 +2635,7 @@ violates the strict aliasing rules. For example:
Strict aliasing can be explicitly enabled with ``-fstrict-aliasing`` and
disabled with ``-fno-strict-aliasing``. ``clang-cl`` defaults to
-``-fno-strict-aliasing``; see . Otherwise, Clang defaults to ``-fstrict-aliasing``.
+``-fno-strict-aliasing``. Otherwise, Clang defaults to ``-fstrict-aliasing``.
C and C++ specify slightly
diff erent rules for strict aliasing. To improve
language interoperability, Clang allows two types to alias if either language
diff --git a/llvm/include/llvm/Support/Debug.h b/llvm/include/llvm/Support/Debug.h
index a6ed645849ded..b73f2d7c8b852 100644
--- a/llvm/include/llvm/Support/Debug.h
+++ b/llvm/include/llvm/Support/Debug.h
@@ -15,7 +15,7 @@
// LLVM_DEBUG() requires the DEBUG_TYPE macro to be defined. Set it to "foo"
// specify that your debug code belongs to class "foo". Be careful that you only
// do this after including Debug.h and not around any #include of headers.
-// Headers should define and undef the macro acround the code that needs to use
+// Headers should define and undef the macro around the code that needs to use
// the LLVM_DEBUG() macro. Then, on the command line, you can specify
// '-debug-only=foo' to enable JUST the debug information for the foo class.
//
More information about the llvm-commits
mailing list