aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2025-03-01 15:46:23 +0900
committerNAKAMURA Takumi <geek4civic@gmail.com>2025-03-01 15:48:54 +0900
commit7731dbe4f9ade953a80147e0dceaff575e652fe0 (patch)
tree4cc1a821273fab27240c55142efafeadf6fac4db
parent39e927c628ac63979a5fbe56983d6644a9c98a8e (diff)
downloadllvm-users/chapuni/mcdc/nest/nest.zip
llvm-users/chapuni/mcdc/nest/nest.tar.gz
llvm-users/chapuni/mcdc/nest/nest.tar.bz2
Prune "nested" warning.users/chapuni/mcdc/nest/nest
-rw-r--r--clang/lib/CodeGen/CodeGenPGO.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp
index 03e6072..7ddd3a10 100644
--- a/clang/lib/CodeGen/CodeGenPGO.cpp
+++ b/clang/lib/CodeGen/CodeGenPGO.cpp
@@ -298,18 +298,6 @@ struct MapRegionCounters : public RecursiveASTVisitor<MapRegionCounters> {
MCDCState
.DecisionByStmt[CodeGenFunction::stripCond(StackTop.DecisionExpr)];
- /// Was the "split-nested" logical operator case encountered?
- if (false && DecisionStack.size() > 1) {
- unsigned DiagID = Diag.getCustomDiagID(
- DiagnosticsEngine::Warning,
- "unsupported MC/DC boolean expression; "
- "contains an operation with a nested boolean expression. "
- "Expression will not be covered");
- Diag.Report(S->getBeginLoc(), DiagID);
- DecisionStack.pop_back();
- return true;
- }
-
/// Was the maximum number of conditions encountered?
auto NumCond = StackTop.Leaves.size();
if (NumCond > MCDCMaxCond) {