TargetInfo.cpp - use castAs<> instead of getAs<> as we dereference the pointer direct...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 24 Nov 2020 16:56:24 +0000 (16:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 25 Nov 2020 11:38:29 +0000 (11:38 +0000)
commit9d996c01aad5371ccf3790ce937b1cc85d1b07ab
tree083f1d0ba9947d582dd03649a392f09dc2a1aa02
parenteb7ea5aa1ac6030b7bc94c5f2fb42de675cd392f
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.
clang/lib/CodeGen/TargetInfo.cpp