Skip to content

Commit 6f9bce9

Browse files
authored
[docs] Fix debug and strict aliasing typo (#140071) (#154861)
See #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
1 parent 7fcee5f commit 6f9bce9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/docs/UsersManual.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ violates the strict aliasing rules. For example:
26352635
26362636
Strict aliasing can be explicitly enabled with ``-fstrict-aliasing`` and
26372637
disabled with ``-fno-strict-aliasing``. ``clang-cl`` defaults to
2638-
``-fno-strict-aliasing``; see . Otherwise, Clang defaults to ``-fstrict-aliasing``.
2638+
``-fno-strict-aliasing``. Otherwise, Clang defaults to ``-fstrict-aliasing``.
26392639

26402640
C and C++ specify slightly different rules for strict aliasing. To improve
26412641
language interoperability, Clang allows two types to alias if either language

llvm/include/llvm/Support/Debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// LLVM_DEBUG() requires the DEBUG_TYPE macro to be defined. Set it to "foo"
1616
// specify that your debug code belongs to class "foo". Be careful that you only
1717
// do this after including Debug.h and not around any #include of headers.
18-
// Headers should define and undef the macro acround the code that needs to use
18+
// Headers should define and undef the macro around the code that needs to use
1919
// the LLVM_DEBUG() macro. Then, on the command line, you can specify
2020
// '-debug-only=foo' to enable JUST the debug information for the foo class.
2121
//

0 commit comments

Comments
 (0)