Fix AsmPrinter crashes with assertion. Bug 15318 in Bugzilla