aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2022-07-12 09:22:13 +0200
committerJean Perier <jperier@nvidia.com>2022-07-12 09:22:59 +0200
commit906784a399069f0829b28273c027fbe36be40ce9 (patch)
tree060287fe07d208fb75fcffda8b8462a0089c417b /clang/lib/CodeGen/CodeGenFunction.cpp
parent0fbb0ca81009d97b87ba536a674495e26630a9aa (diff)
downloadllvm-906784a399069f0829b28273c027fbe36be40ce9.zip
llvm-906784a399069f0829b28273c027fbe36be40ce9.tar.gz
llvm-906784a399069f0829b28273c027fbe36be40ce9.tar.bz2
[flang] move getKindMapping() calls out of FIROpBuilder ctor calls
FirOpBuilder takes a fir::KindMapping reference. When the getKindMapping() call is made inside the ctor call, the lifetime of this reference may be as short as the ctor call (at least with when building flang in release mode with clang 8). This can cause segfaults when later using the FirOpBuilder. Ensure the kindMap passed to the FirOpBuilder ctor is the same as the FirOpBuilder. Differential Revision: https://reviews.llvm.org/D129494
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions