The proper fix for this is being worked out in D85085.
Until then, this one line fix removes the assert fail with basic block sections with debug info. Bug tracking this: #47549
This fix does not generate loc list or DW_AT_const_value if the argument is mentioned in a different section than the start of the function.
Temporarily fixes bugzilla : https://bugs.llvm.org/show_bug.cgi?id=47549