|
|
|
|
|
by d0
4503 days ago
|
|
You are 100% right. LLVM should fire a dead code warning here. However later code is used as a jump target for goto so it's quite hard for the compiler to infer this (or is it because its a different scope?). Either way, definitely avoidable. Looks typical of a merge cock up to me as the indentation is preserved suggesting it's a duplicate line or there was an if statement on the previous line that was removed. |
|
> However later code is used as a jump target for goto so it's quite hard for the compiler to infer this
Nope, because a jump target always starts a new basic block.