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

Thomas Fransham via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 06:56:02 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();
----------------
fsfod wrote:

I guess i missed the line above, but unless i was misunderstood layers of template template instantiation i found no code creating Any with LoopNest when i checked before.

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


More information about the llvm-commits mailing list