Wouldn't it be a better fix to use the proper location for the alloca and rather fix the backend to follow the inlinedAt references in the alloca's debug location when deciding the end of the prologue? http://reviews.llvm.org/D5401