diff options
author | Tyler Lanphear <tylanphear@gmail.com> | 2023-09-09 10:12:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 10:12:42 -0700 |
commit | 52f6f418c78586817f78f3429991672073a05931 (patch) | |
tree | 2030d3406f01f2f459e07e02ef4cc183f6e47931 /clang/lib/Lex/ModuleMap.cpp | |
parent | 98e6deb62cefaa7d5c67081bd5b72ad26bada46e (diff) | |
download | llvm-52f6f418c78586817f78f3429991672073a05931.zip llvm-52f6f418c78586817f78f3429991672073a05931.tar.gz llvm-52f6f418c78586817f78f3429991672073a05931.tar.bz2 |
[GlobalOpt] Handle DL.getAllocaAddrSpace() != 0 (#65847)
Fix crash on RAUW due to locals and globals having different address
spaces. This is the intent of the original code, but it assumes the
alloca address space is 0. This patch fixes the code to check that the
global's address space matches `DL.getAllocaAddrSpace()` instead.
Fixes #65155
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions