Menu "Edit/Patch program/Fill nops"
Sometimes Hex-Rays can't decompile code because the subroutine includes useless or not executable garbage within. Select this garbage code and click menu entry "Edit/Patch program/Fill nops" - decompiler will be happy.