[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
@@ -341,30 +341,27 @@ static unsigned scanFromBlock(const CFGBlock *Start, // This allows us to potentially uncover some "always unreachable" code // within the "sometimes unreachable" code. // Look at the successors and mark then reachable. -std::optional Treat

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/4] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
https://github.com/thyecust updated https://github.com/llvm/llvm-project/pull/72257 >From 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 Mon Sep 17 00:00:00 2001 From: thyecust Date: Tue, 14 Nov 2023 21:51:55 +0800 Subject: [PATCH 1/4] Update ReachableCode.cpp --- clang/lib/Analysis/ReachableCode.c

[llvm] [clang] [flang] [libc] [compiler-rt] [libcxx] [clang-tools-extra] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)

2023-11-23 Thread via cfe-commits
@@ -341,30 +341,27 @@ static unsigned scanFromBlock(const CFGBlock *Start, // This allows us to potentially uncover some "always unreachable" code // within the "sometimes unreachable" code. // Look at the successors and mark then reachable. -std::optional Treat