[llvm] [WIP][ASAN] Add "asan_instrumented" llvm ir attribute to identify AddressSanitizer instrumented globals (PR #68865)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 02:21:47 PDT 2023
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 2ceabf6bdc649f06a316f917a0f508fe10ea7faa 681e041d0868bea4f0163f1c842628407ea7e5e5 -- llvm/include/llvm/Bitcode/LLVMBitCodes.h llvm/include/llvm/IR/Attributes.h llvm/lib/AsmParser/LLLexer.cpp llvm/lib/AsmParser/LLParser.cpp llvm/lib/Bitcode/Reader/BitcodeReader.cpp llvm/lib/Bitcode/Writer/BitcodeWriter.cpp llvm/lib/IR/Attributes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 4e49f38b16b9..0d57065dc6b0 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -1526,7 +1526,8 @@ bool LLParser::parseFnAttributeValuePairs(AttrBuilder &B,
}
if (Token == lltok::kw_asan_instrumented) {
- if (parseToken(lltok::kw_asan_instrumented, "expected 'asan_instrumented'"))
+ if (parseToken(lltok::kw_asan_instrumented,
+ "expected 'asan_instrumented'"))
return true;
B.addAttribute(Attribute::AsanInstrumented);
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/68865
More information about the llvm-commits
mailing list