[SelectionDAG] Add missing semicolon after return.
authorCraig Topper <craig.topper@sifive.com>
Tue, 25 Oct 2022 17:18:46 +0000 (10:18 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 25 Oct 2022 17:24:01 +0000 (10:24 -0700)
commit8c42b5e89e1948e3a2ccfa3f09d4360f5eb47833
treeb61c83407905b0d193fd9b48b2b43ffb81cffe69
parentc49d14aca5c7b06a4f896e9923bdab8a33f2866d
[SelectionDAG] Add missing semicolon after return.

I'm unsure what the code does without the semicolon. On the surface it
seems like the assert below it would be considered part of the if
and thus the assert would only execute if DestReg is 0. But 0 isn't
considered a virtual register so the assert should fail.

Found by PVS Studio.
Reported https://pvs-studio.com/en/blog/posts/cpp/1003/ (N7)
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp