lli: wrong output; clang: segmentation fault

Dear developers,

Attached .ll file looks well-formed, but lli produces wrong output.
It prints just: ‘20\n’, although the correct output:‘20\n22\n’.
Executable, compiled with clang++ has segmentation fault, because it overwrites a return address. But the file, emitted with llc looks nice. Architecture: Linux, x86-64
I wanted to submit a bug, but I can’t get an account.

lifetime.ll (3.21 KB)

Forgot to add. Tested LLVM and Clang versions: trunk 296733.