aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-print-openacc-wait-construct.cpp
diff options
context:
space:
mode:
authorHarald van Dijk <harald.vandijk@codeplay.com>2025-07-24 18:43:17 +0100
committerGitHub <noreply@github.com>2025-07-24 18:43:17 +0100
commit2228b4b46c3e45b5aab801a636041ed13ae47375 (patch)
tree0744587eae650a2c64592c6fb2c8a1bbd6dd61fa /clang/test/AST/ast-print-openacc-wait-construct.cpp
parentd750c6de8a75cbe2bc16c136764195471be8f0b7 (diff)
downloadllvm-2228b4b46c3e45b5aab801a636041ed13ae47375.zip
llvm-2228b4b46c3e45b5aab801a636041ed13ae47375.tar.gz
llvm-2228b4b46c3e45b5aab801a636041ed13ae47375.tar.bz2
clang: Handle deleting pointers to incomplete array types (#150359)
CodeGenFunction::EmitCXXDeleteExpr contains logic to go from a pointer to an array to a pointer to the first element of the array using a getelementptr LLVM IR instruction. This was done for pointers that were not variable length arrays, as pointers to variable length arrays never existed in LLVM IR, but rather than checking for arrays that were not variable length arrays, it checked for arrays that had a constant bound. This caused incomplete arrays to be inadvertently omitted. This getelementptr was necessary back when LLVM IR used typed pointers, but they have been gone for a while, a gep with a constant zero offset does nothing now, so we can simplify the code by removing that.
Diffstat (limited to 'clang/test/AST/ast-print-openacc-wait-construct.cpp')
0 files changed, 0 insertions, 0 deletions