fix Issue 11034 - ICE: Assertion failed: (!scope), function toObjFile, file toobj.c, line 366.
Merge pull request #2775 from 9rnsr/fix11304

Issue 11034 - ICE: Assertion failed: (!scope), function toObjFile, file toobj.c, line 366.