Fix variables used only in asserts.
For post-commit review.
Differential D81522
Fix variables used only in asserts. saugustine on Jun 9 2020, 5:12 PM. Authored by
Details
Fix variables used only in asserts. For post-commit review.
Diff Detail
Event TimelineComment Actions Thanks for the fix! Totally within the realm of post-commit review so far as I can see. The paired assertions could maybe be rewritten as: "assert(MRMgr.getVarRegion(P, SFC) ->getKind()== (SFC->inTopFrame() ? NonParamVarRegionKind : ParamVarRegionKind));" though it's not necessarily better (bit verbose, but avoids the textual duplication of the getVarRegion calls). Oh, and that first assert could potentially be an "assert(llvm::all_of... " to avoid D2 being an unused variable in non-asserts builds). There's no need to send things for review that don't need pre-commit review. Post-commit review can be done in replies to the commit email on llvm-commits. (sending things like this can muddy the waters about post/pre-commit review - especially around code sent for pre-commit review but is then committed without that review concluding) |