fix use of DiagnosticOptions for older clangs
commitd40dc1f4db716911a566c7008f512cefe2e52c5a
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 8 Nov 2012 12:10:09 +0000 (8 13:10 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 8 Nov 2012 14:06:43 +0000 (8 15:06 +0100)
tree7eea1ed369f6b49715d52a8a3c036b24d0641296
parent7bfd9cefb708c1f69ef9339a1f7e7482d0d17635
fix use of DiagnosticOptions for older clangs

Commit fe672fe (update for change in clang's DiagnosticOptions,
Sun Nov 4 10:42:00 2012 +0100) extracted the construction
of a MyDiagnosticPrinter object into a separate function,
which means that the DiagnosticOptions object created on the stack
disappears while it is still being referenced.

Use the DiagnosticOptions from the CompilerInstance instead.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
pet.cc