[clang-tools-extra] Clean up strange uses of getAnalysisIfAvailable (PR #65729)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 11 02:44:31 PDT 2023


================
@@ -261,7 +261,7 @@ bool VirtRegRewriter::runOnMachineFunction(MachineFunction &fn) {
   Indexes = &getAnalysis<SlotIndexes>();
   LIS = &getAnalysis<LiveIntervals>();
   VRM = &getAnalysis<VirtRegMap>();
-  DebugVars = getAnalysisIfAvailable<LiveDebugVariables>();
+  DebugVars = &getAnalysis<LiveDebugVariables>();
----------------
jayfoad wrote:

Thanks! Fixed in 05c16f40c9de93c181d45ec718de5487380f0514

https://github.com/llvm/llvm-project/pull/65729


More information about the cfe-commits mailing list