NFC: Refactor inout error msg emission
NFC: Refactor inout error msg emission

Global actors need to work with non-lookup non-member values. As such,
we can't rely on the argument of the call being a LookupExpr. The error
message emission logic only relies on the declaration and the subExpr
argument. This refactor will allow us to avoid having another switch
statement for the global-actor case that more-or-less does the same
thing.

gregomni/swift,benlangmuir/swift,ahoppen/swift,JGiola/swift,jmgc/swift,parkera/swift,glessard/swift,hooman/swift,ahoppen/swift,jmgc/swift,xwu/swift,parkera/swift,benlangmuir/swift,glessard/swift,xwu/swift,glessard/swift,roambotics/swift,xwu/swift,tkremenek/swift,jmgc/swift,atrick/swift,apple/swift,tkremenek/swift,tkremenek/swift,benlangmuir/swift,rudkx/swift,roambotics/swift,benlangmuir/swift,xwu/swift,hooman/swift,tkremenek/swift,atrick/swift,JGiola/swift,parkera/swift,parkera/swift,benlangmuir/swift,JGiola/swift,gregomni/swift,gregomni/swift,tkremenek/swift,parkera/swift,apple/swift,atrick/swift,ahoppen/swift,glessard/swift,rudkx/swift,roambotics/swift,benlangmuir/swift,glessard/swift,hooman/swift,jmgc/swift,rudkx/swift,hooman/swift,ahoppen/swift,hooman/swift,JGiola/swift,apple/swift,roambotics/swift,rudkx/swift,parkera/swift,JGiola/swift,atrick/swift,gregomni/swift,apple/swift,apple/swift,xwu/swift,gregomni/swift,JGiola/swift,tkremenek/swift,atrick/swift,jmgc/swift,gregomni/swift,xwu/swift,rudkx/swift,ahoppen/swift,parkera/swift,hooman/swift,parkera/swift,roambotics/swift,atrick/swift,hooman/swift,rudkx/swift,jmgc/swift,xwu/swift,jmgc/swift,apple/swift,glessard/swift,roambotics/swift,ahoppen/swift,tkremenek/swift