This patch includes a fix for a compilation failure, introduced by:
https://reviews.llvm.org/D53287
https://reviews.llvm.org/rL345250
The test case that causes the compilation failure, was supplied by Mikael Holmen.
For the given test case, the verifier complains with the error message:
LLVM ERROR: Broken function found, compilation aborted!
The issue has been reported as: