[llvm] [NFC] [hwasan] also be more consistent when getting pointer types (PR #84399)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 16:04:57 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff b408241d0ad9ce009b49018fe1e9838887abf3c1 31c2610f1117a2a05a0e01af8c08c8b30c15214d -- llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 61d54b8503..1364d0b50e 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -411,7 +411,7 @@ private:
Type *VoidTy = Type::getVoidTy(M.getContext());
Type *IntptrTy = M.getDataLayout().getIntPtrType(M.getContext());
- PointerType *PtrTy = PointerType::get(M.getContext(), /* AddressSpace= */0);
+ PointerType *PtrTy = PointerType::get(M.getContext(), /* AddressSpace= */ 0);
Type *Int8Ty = Type::getInt8Ty(M.getContext());
Type *Int32Ty = Type::getInt32Ty(M.getContext());
Type *Int64Ty = Type::getInt64Ty(M.getContext());
``````````
</details>
https://github.com/llvm/llvm-project/pull/84399
More information about the llvm-commits
mailing list