The fix LGTM, but please make the test actually test the code-generation of the variable when it has an initializer. http://reviews.llvm.org/D9522 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/