aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2025-08-08 15:04:11 -0700
committerGitHub <noreply@github.com>2025-08-08 15:04:11 -0700
commit29367747bc81b41d60fb40e48cc5907e3667d914 (patch)
treece827ff47c67065066f3233f3e93b3c002d34e80 /clang/lib/CodeGen/CodeGenModule.cpp
parent88b791593941e1a94499e58cb73a080b928c46d1 (diff)
downloadllvm-29367747bc81b41d60fb40e48cc5907e3667d914.zip
llvm-29367747bc81b41d60fb40e48cc5907e3667d914.tar.gz
llvm-29367747bc81b41d60fb40e48cc5907e3667d914.tar.bz2
[Clang][AST][NFC] Add assertion on Init to CompoundLiteralExpr (#152593)
Static analysis complained that: child_range(&Init, &Init+1); in the children member function was potentially out of bounds. This is false b/c it is forming an iterator range but it would be invalid if Init was a nullptr. I add an assertion in the constructor for this and remove to FIXME checks that are related to this. I checked the various usages and we always valid the argument is not nullptr.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions