aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorChristian Ulmann <christian.ulmann@nextsilicon.com>2023-02-10 08:21:46 +0100
committerChristian Ulmann <christian.ulmann@nextsilicon.com>2023-02-10 08:38:14 +0100
commitfc2c791e89cd10ab9225421f215c2267e832977f (patch)
tree51bee8794efc952b31fddfaa6a507a557f390aa5 /llvm/lib/Object/MachOObjectFile.cpp
parent70924673af680303d64e540d7767c0eeda5217fc (diff)
downloadllvm-fc2c791e89cd10ab9225421f215c2267e832977f.zip
llvm-fc2c791e89cd10ab9225421f215c2267e832977f.tar.gz
llvm-fc2c791e89cd10ab9225421f215c2267e832977f.tar.bz2
[mlir][llvm] Fix TBAA verfication crash
This commit fixes a crash of the TBAA verification that happened due to accessing memory through invalid pointers. A DenseMap does not guarantee that pointers to its elements remain valid after additional elements are inserted. A testcase that caused this crash had more than 100 TBAA metadata operations and thus no test is added. Instead, there is now an assertion that ensures that the graph class is used correctly. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D143653
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions