aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/JSON.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-07-10 10:40:11 +0000
committerMartin Storsjo <martin@martin.st>2018-07-10 10:40:11 +0000
commit474be005dbf5ee7fd658237f417192aad4696a4f (patch)
tree041ab9bb5cf7202481a18d46eeb611e111024c98 /llvm/lib/Support/JSON.cpp
parentbc6702a42414f03ba2f83d4c1d417ca4d3b3bba7 (diff)
downloadllvm-474be005dbf5ee7fd658237f417192aad4696a4f.zip
llvm-474be005dbf5ee7fd658237f417192aad4696a4f.tar.gz
llvm-474be005dbf5ee7fd658237f417192aad4696a4f.tar.bz2
[COFF] Store import symbol pointers as pointers to the base class
Future symbol insertions can potentially change the type of these symbols - keep pointers to the base class to reflect this, and use dynamic casts to inspect them before using as the subclass type. This fixes crashes that were possible before, by touching these symbols that now are populated as e.g. a DefinedRegular, via the old pointers with DefinedImportThunk type. Differential Revision: https://reviews.llvm.org/D48953 llvm-svn: 336652
Diffstat (limited to 'llvm/lib/Support/JSON.cpp')
0 files changed, 0 insertions, 0 deletions