diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-24 16:56:24 +0000 | 
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-11-25 11:38:29 +0000 | 
| commit | 9d996c01aad5371ccf3790ce937b1cc85d1b07ab (patch) | |
| tree | 083f1d0ba9947d582dd03649a392f09dc2a1aa02 /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | |
| parent | eb7ea5aa1ac6030b7bc94c5f2fb42de675cd392f (diff) | |
| download | llvm-9d996c01aad5371ccf3790ce937b1cc85d1b07ab.zip llvm-9d996c01aad5371ccf3790ce937b1cc85d1b07ab.tar.gz llvm-9d996c01aad5371ccf3790ce937b1cc85d1b07ab.tar.bz2  | |
TargetInfo.cpp - use castAs<> instead of getAs<> as we dereference the pointer directly. NFCI.
castAs<> will assert the correct cast type instead of just returning null, which we then try to dereference immediately.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions
