diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-08 13:06:07 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-08 13:06:07 +0000 |
commit | 8930032f53322405ca2d06cac78b9503542e5b62 (patch) | |
tree | 503dcffac035e63554fc71f89bdb8901a350bda4 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 0fe91ad463fea9d08cbcd640a62aa9ca2d8d05e0 (diff) | |
download | llvm-8930032f53322405ca2d06cac78b9503542e5b62.zip llvm-8930032f53322405ca2d06cac78b9503542e5b62.tar.gz llvm-8930032f53322405ca2d06cac78b9503542e5b62.tar.bz2 |
Don't dereference a dyn_cast<> result - use cast<> instead. NFCI.
We were relying on the dyn_cast<> succeeding - better use cast<> and have it assert that its the correct type than dereference a null result.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions