Details
Details
- Reviewers
rafauler maksfb - Commits
- rG43f382a9f4a8: [BOLT][NFC] Simplify handleRelocation
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
bolt/lib/Rewrite/RewriteInstance.cpp | ||
---|---|---|
2509–2510 | I think it's better to have BinaryFunction *BF inside the if clause, so it's clear that the scope of the BF variable does not extend past this if. Unless I'm missing something else. |
bolt/lib/Rewrite/RewriteInstance.cpp | ||
---|---|---|
2509–2510 | Sure. I've made the change because there's no scope difference as there's no code past the if clause (here and below with RogueBF), but let's keep it explicit that the scope is restricted to the if clause. |
I think it's better to have BinaryFunction *BF inside the if clause, so it's clear that the scope of the BF variable does not extend past this if. Unless I'm missing something else.