[llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 02:48:35 PDT 2024


================
@@ -273,8 +273,6 @@ PreservedAnalyses FunctionToLoopPassAdaptor::run(Function &F,
            llvm::any_cast<const LoopNest *>(&IR));
     const Loop **LPtr = llvm::any_cast<const Loop *>(&IR);
     const Loop *L = LPtr ? *LPtr : nullptr;
-    if (!L)
-      L = &llvm::any_cast<const LoopNest *>(IR)->getOutermostLoop();
----------------
nikic wrote:

There's an `any_cast<const LoopNest *>` in an assertion left above.

Though generally I don't get why you're removing the LoopNest support here. 

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


More information about the llvm-commits mailing list