Fix memory corruption bug found and fixed by Andrew C. Morrow.

llvm-svn: 157476
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: a960edd203a4a6890338e5f934984f5136b7e61f
1 file changed