Re: [PATCH] D17815: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion.

2016-03-28 Thread Igor Kudrin via cfe-commits
ikudrin updated the summary for this revision. ikudrin updated this revision to Diff 51782. ikudrin added a comment. Make cxa_exception.cpp and cxa_exception_storage.cpp to use the same emergency memory pool. http://reviews.llvm.org/D17815 Files: libcxxabi/trunk/src/CMakeLists.txt libcxxab

[clang-tools-extra] [clang-tidy] Enable plugin tests with LLVM_INSTALL_TOOLCHAIN_ONLY (PR #90370)

2024-04-27 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/90370 The only reason for the removed condition was that there was a dependency for `CTTestTidyModule` on the `clang-tidy-headers` target, which was only created under the same `NOT LLVM_INSTALL_TOOLCHAIN_ONLY` con

[clang-tools-extra] [clang-tidy] Enable plugin tests with LLVM_INSTALL_TOOLCHAIN_ONLY (PR #90370)

2024-04-27 Thread Igor Kudrin via cfe-commits
igorkudrin wrote: > I think out of tree builds of clang-tidy (back in the svn days, when people > did partial checkouts of individual projects) probably needed this to be able > to correctly correctly find the right headers. Maybe standalone builds aren't > permitted anymore? I think I mention

[clang-tools-extra] [clang-tidy] Enable plugin tests with LLVM_INSTALL_TOOLCHAIN_ONLY (PR #90370)

2024-05-01 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/90370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/117419 >From 54fc788cca22b1b30313f4349d9ef2ba8cf58079 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 22 Nov 2024 21:36:54 -0800 Subject: [PATCH 1/2] [clang][AArch64] Avoid a crash when a non-reserved registe

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin edited https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
@@ -232,13 +232,23 @@ bool AArch64TargetInfo::validateTarget(DiagnosticsEngine &Diags) const { bool AArch64TargetInfo::validateGlobalRegisterVariable( StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const { - if ((RegName == "sp") || RegName.starts_with("x"))

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-25 Thread Igor Kudrin via cfe-commits
igorkudrin wrote: > Please check if this fixes #109778 too. Seems very similar. This patch fixes #109778, but only for AArch64. https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-12-05 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/117419 >From 54fc788cca22b1b30313f4349d9ef2ba8cf58079 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 22 Nov 2024 21:36:54 -0800 Subject: [PATCH 1/3] [clang][AArch64] Avoid a crash when a non-reserved registe

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-12-05 Thread Igor Kudrin via cfe-commits
@@ -232,13 +232,23 @@ bool AArch64TargetInfo::validateTarget(DiagnosticsEngine &Diags) const { bool AArch64TargetInfo::validateGlobalRegisterVariable( StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const { - if ((RegName == "sp") || RegName.starts_with("x"))

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-11-22 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/117419 Fixes #76426 The previous patch for this issue, #94271, generated an error message if a register and a global variable did not have the same size. This patch checks if the register is actually reserved. >F

[clang] da65fe1 - Revert "[clang][AArch64] Avoid a crash when a non-reserved register is used (#117419)"

2024-12-06 Thread Igor Kudrin via cfe-commits
Author: Igor Kudrin Date: 2024-12-06T15:10:40-08:00 New Revision: da65fe1c16308cdb71b2fd26aaedc0ce52521ab4 URL: https://github.com/llvm/llvm-project/commit/da65fe1c16308cdb71b2fd26aaedc0ce52521ab4 DIFF: https://github.com/llvm/llvm-project/commit/da65fe1c16308cdb71b2fd26aaedc0ce52521ab4.diff L

[clang] afa2fbf - [Reland][clang][AArch64] Avoid a crash when a non-reserved register is used (#117419)

2024-12-06 Thread Igor Kudrin via cfe-commits
Author: Igor Kudrin Date: 2024-12-06T16:13:36-08:00 New Revision: afa2fbf87a8e3fff609fd325c938929c48e94280 URL: https://github.com/llvm/llvm-project/commit/afa2fbf87a8e3fff609fd325c938929c48e94280 DIFF: https://github.com/llvm/llvm-project/commit/afa2fbf87a8e3fff609fd325c938929c48e94280.diff L

[clang] [clang][AArch64] Avoid a crash when a non-reserved register is used (PR #117419)

2024-12-06 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/117419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-06 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/147221 This enables producing a "variable is uninitialized" warning when a value is passed to a pointer-to-const argument: ``` void foo(const int *); void test() { int *v; foo(v); } ``` Fixes #37460 >From f1e

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-06 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/2] [clang] Fix -Wuninitialized for values passed by const poin

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-07 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/3] [clang] Fix -Wuninitialized for values passed by const poin

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-07 Thread Igor Kudrin via cfe-commits
@@ -453,7 +450,7 @@ void ClassifyRefs::VisitCallExpr(CallExpr *CE) { const auto *UO = dyn_cast(Ex); if (UO && UO->getOpcode() == UO_AddrOf) Ex = UO->getSubExpr(); - classify(Ex, Ignore); + classify(Ex, Use); igorkudrin wrote: > Co

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-07 Thread Igor Kudrin via cfe-commits
@@ -453,7 +450,7 @@ void ClassifyRefs::VisitCallExpr(CallExpr *CE) { const auto *UO = dyn_cast(Ex); if (UO && UO->getOpcode() == UO_AddrOf) Ex = UO->getSubExpr(); - classify(Ex, Ignore); + classify(Ex, Use); igorkudrin wrote: Than

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-09 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/147897 The second parameter is unused since 6080d32194. >From 748a7ad92ed59854502ff5c3b28dfb18f8e08c79 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Wed, 9 Jul 2025 18:49:32 -0700 Subject: [PATCH] [clang][NFC] R

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-09 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/147898 This helps to avoid duplicating warnings in cases like: ``` > cat test.cpp void bar(int); void foo(const int &); void test(bool a) { int v = v; if (a) bar(v); else foo(v); } > clang++.exe test.cp

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/3] [clang] Fix -Wuninitialized for values passed by const poin

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-10 Thread Igor Kudrin via cfe-commits
@@ -453,7 +450,7 @@ void ClassifyRefs::VisitCallExpr(CallExpr *CE) { const auto *UO = dyn_cast(Ex); if (UO && UO->getOpcode() == UO_AddrOf) Ex = UO->getSubExpr(); - classify(Ex, Ignore); + classify(Ex, Use); igorkudrin wrote: @zyg

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147898 >From a813a4c665579b3654b287ff64c8180139879a38 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Wed, 9 Jul 2025 21:19:40 -0700 Subject: [PATCH 1/2] [clang] Combine ConstRefUse with other warnings for uniniti

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
@@ -27,7 +27,7 @@ int const_use(const int i); void f(int a) { int i; const_ref_use(i); // expected-warning {{variable 'i' is uninitialized when passed as a const reference argument here}} - int j = j + const_ref_use(j); // expected-warning {{variable 'j' is u

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/147898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/147897 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix suppressing diagnostics for uninitialized variables (PR #148336)

2025-07-11 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/148336 When one kind of diagnostics is disabled, this should not preclude other diagnostics from displaying, even if they have lower priority. For example, this should print a warning about passing an uninitialized

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/148337 This option is similar to -Wuninitialized-const-reference, but diagnoses the passing of an uninitialized value via a const pointer, like in the following code: ``` void foo(const int *); void test() { int

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
igorkudrin wrote: This fixes an additional case reported by @rnapier in #37460 https://github.com/llvm/llvm-project/pull/148337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-11 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Add -Wuninitialized-const-pointer (PR #148337)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/148337 >From 8343c946e874ee27e71781ac1bd10fb680b08fbf Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 11 Jul 2025 18:23:10 -0700 Subject: [PATCH 1/2] [clang] Add -Wuninitialized-const-pointer This option is s

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-14 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/3] [clang] Fix -Wuninitialized for values passed by const poin

<    1   2