diff options
author | Pavel Labath <labath@google.com> | 2016-03-04 10:00:08 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-03-04 10:00:08 +0000 |
commit | a174d8709fe7fab8c1275fe3d3310649ab2b46ca (patch) | |
tree | 6044fdaca2a6243b51bb1f5bf4dc95592ed43838 /lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py | |
parent | c5b1d320b856559db375e8effc2fe9b04bfaf6ee (diff) | |
download | bcm5719-llvm-a174d8709fe7fab8c1275fe3d3310649ab2b46ca.tar.gz bcm5719-llvm-a174d8709fe7fab8c1275fe3d3310649ab2b46ca.zip |
[SemaExprCXX] Avoid calling isInSystemHeader for invalid source locations
Summary:
While diagnosing a CXXNewExpr warning, we were calling isInSystemHeader(), which expect to be
called with a valid source location. This causes an assertion failure if the location is unknown.
A quick grep shows it's not without precedent to guard calls to the function with a
"Loc.isValid()".
This fixes a test failure in LLDB, which always creates object with invalid source locations as it
does not (always) have access to the source.
Reviewers: nlewycky
Subscribers: lldb-commits, cfe-commits
Differential Revision: http://reviews.llvm.org/D17847
llvm-svn: 262700
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py')
0 files changed, 0 insertions, 0 deletions