The diagnostic printer expects the LangOptions to still be alive. Give it one that lives at least as long as all the uses of it. This is still wrong though, we should be passing in the correct LangOpts for a given source file.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@200952 91177308-0d34-0410-b5e6-96231b3b80d8