These variables are unused in the no-assert build.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This fixes -Wunused-variable warnings in -DLLVM_ENABLE_ASSERTIONS=off builds. This can be submitted without review.
I think if you mention the original differential (Dxxxxx), the author may be notified when you push the commit. The Phabricator UI will also connect your commit with the original differential.
Comment Actions
LGTM thanks, in case you are waiting for approval in Phabricator. But as mentioned earlier, there's no need for patches like this to go through review.
llvm/lib/Analysis/LoopInfo.cpp | ||
---|---|---|
369 | FWIW if Latch is not used elsewhere, it would be easier to just call getLoopLatch in the assert, rather than adding an unused variable to the scope. |
Comment Actions
@rdhindsa is waiting for the git commit permission. In the meantime, rG25e21a09b3f6 was committed to fix the -Wunused-variable problems.
FWIW if Latch is not used elsewhere, it would be easier to just call getLoopLatch in the assert, rather than adding an unused variable to the scope.