[llvm-branch-commits] [clang] [clang][NFC] Make `CFGStmtMap` `const`-correct (PR #172529)

2025-12-16 Thread David Stone via llvm-branch-commits
https://github.com/davidstone created https://github.com/llvm/llvm-project/pull/172529 None >From 34fdb92ec425776892a78ec8ca2d49070ea397d2 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 15 Dec 2025 15:22:47 -0700 Subject: [PATCH] [clang][NFC] Make `CFGStmtMap` `const`-correct --- clan

[llvm-branch-commits] [clang] [clang][NFC] Use constructor instead of factory function in `CFGStmtMap` (PR #172530)

2025-12-16 Thread David Stone via llvm-branch-commits
https://github.com/davidstone created https://github.com/llvm/llvm-project/pull/172530 `CFGStmtMap::Build` accepts pointers and returns a pointer to dynamically allocated memory. In the one location where the type is actually constructed, the pointers are guaranteed to be non-null. By acceptin