The call to emitCodeAlignment was missing a STI which is required after D45962.
Should fix the problem reported in D45962 https://reviews.llvm.org/D45962#2988712
emitCodeAlignment has a default parameter of 0 for MaxBytesToEmit. Explicitly passing 0 here was interpreted as as nullptr for the STI. This could possibly be avoided by taking STI as a const reference in emitCodeAlignment. This could be done as a follow up patch to get the fix for the problem resolved.