diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-10-15 00:33:06 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-10-15 00:33:06 +0000 |
commit | d512c1edf0f1425eae61c13812ea4000fcabc609 (patch) | |
tree | 56fb4d66076b59454cb6834818b8f11daefa53e3 /lldb/source/Host/common/FileSpec.cpp | |
parent | cba08bd9b2f66868d27387c4f7ea06b8150d75f7 (diff) | |
download | bcm5719-llvm-d512c1edf0f1425eae61c13812ea4000fcabc609.tar.gz bcm5719-llvm-d512c1edf0f1425eae61c13812ea4000fcabc609.zip |
Frontend: Don't accept null DiagnosticsEngines when building ASTUnits
The various ways to create an ASTUnit all take a refcounted pointer to
a diagnostics engine as an argument, and if it isn't pointing at
anything they initialize it. This is a pretty confusing API, and it
really makes more sense for the caller to initialize the thing since
they control the lifetime anyway.
This fixes the one caller that didn't bother initializing the pointer
and asserts that the argument is initialized.
llvm-svn: 219752
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
0 files changed, 0 insertions, 0 deletions