[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 00:46:31 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:
I see, so the code intentionally passes the outermost loop instead of the LoopNest to pass instrumentation. In that case these changes are fine.
https://github.com/llvm/llvm-project/pull/108051
More information about the cfe-commits
mailing list