https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/209024
>From d377eaf61d0edb04ba6647515498059a54d125bd Mon Sep 17 00:00:00 2001 From: Vitaly Buka <[email protected]> Date: Sun, 12 Jul 2026 07:42:05 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF-8?q?itial=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.7 --- clang/unittests/Lex/PPMemoryAllocationsTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/unittests/Lex/PPMemoryAllocationsTest.cpp b/clang/unittests/Lex/PPMemoryAllocationsTest.cpp index ebdb0346b3bed..e06ec5a98495d 100644 --- a/clang/unittests/Lex/PPMemoryAllocationsTest.cpp +++ b/clang/unittests/Lex/PPMemoryAllocationsTest.cpp @@ -19,6 +19,7 @@ #include "clang/Lex/Preprocessor.h" #include "clang/Lex/PreprocessorOptions.h" #include "gtest/gtest.h" +#include "llvm/Support/Compiler.h" using namespace clang; @@ -89,7 +90,11 @@ TEST_F(PPMemoryAllocationsTest, PPMacroDefinesAllocations) { // Assume a reasonable upper bound based on that number that we don't want // to exceed when storing information about a macro #define with 1 or 3 // tokens. +#if LLVM_ADDRESS_SANITIZER_BUILD + EXPECT_LT(BytesPerDefine, 145.0f); +#else EXPECT_LT(BytesPerDefine, 130.0f); +#endif } } // anonymous namespace >From 722c78ab3e4a49d4534db4b6e9a55f856983b54f Mon Sep 17 00:00:00 2001 From: Vitaly Buka <[email protected]> Date: Sun, 12 Jul 2026 07:45:48 -0700 Subject: [PATCH 2/2] format Created using spr 1.3.7 --- clang/unittests/Lex/PPMemoryAllocationsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/unittests/Lex/PPMemoryAllocationsTest.cpp b/clang/unittests/Lex/PPMemoryAllocationsTest.cpp index e06ec5a98495d..06308a5b5e6b7 100644 --- a/clang/unittests/Lex/PPMemoryAllocationsTest.cpp +++ b/clang/unittests/Lex/PPMemoryAllocationsTest.cpp @@ -18,8 +18,8 @@ #include "clang/Lex/ModuleLoader.h" #include "clang/Lex/Preprocessor.h" #include "clang/Lex/PreprocessorOptions.h" -#include "gtest/gtest.h" #include "llvm/Support/Compiler.h" +#include "gtest/gtest.h" using namespace clang; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
