[DFSan] Don't crash with the legacy pass manager
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Sep 2022 10:55:58 +0000 (12:55 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Sep 2022 17:11:55 +0000 (19:11 +0200)
commit2675c41671315da867c56276160e70905c59d11f
treec44b3d38ea1561616e7c40ef900a9e677fa9bc8d
parentb22397fee45c35fcdfb679bf27f976038a3542a0
[DFSan] Don't crash with the legacy pass manager

TargetLibraryInfo isn't optional, so we have to provide it even with the
lageacy stuff. Ideally we wouldn't need it anymore but there are still
users out there that are stuck on the legacy PM.

Differential Revision: https://reviews.llvm.org/D133685
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp