[llvm-branch-commits] [lld][ELF] Remove redundant size check in nopInstrFill (PR #180304)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 6 20:59:18 PST 2026
================
@@ -303,8 +303,6 @@ static void nopInstrFill(Ctx &ctx, uint8_t *buf, size_t size) {
if (size == 0)
return;
unsigned i = 0;
- if (size == 0)
----------------
MaskRay wrote:
Thanks for noticing this duplicate code from https://reviews.llvm.org/D68065 . Do you happen to know if this feature is actually still in use? Back when I was at Google, it had been sitting unused for years, and I'd hate to keep carrying that technical debt if it's no longer necessary.
https://github.com/llvm/llvm-project/pull/180304
More information about the llvm-branch-commits
mailing list