diff options
| author | Samuel Benzaquen <sbenza@google.com> | 2014-10-27 20:58:44 +0000 |
|---|---|---|
| committer | Samuel Benzaquen <sbenza@google.com> | 2014-10-27 20:58:44 +0000 |
| commit | d93fcc1b289457e50e9738ce854bdde1b69012f7 (patch) | |
| tree | 319865a6add4396280a50a5c9b03957ca140b7e8 /libcxx/test/utilities/function.objects/comparisons/less.pass.cpp | |
| parent | e9afaf71f7fb9e2e60519f827a4a7c01d619be37 (diff) | |
| download | bcm5719-llvm-d93fcc1b289457e50e9738ce854bdde1b69012f7.tar.gz bcm5719-llvm-d93fcc1b289457e50e9738ce854bdde1b69012f7.zip | |
Fix segfault in hasDeclContext for nodes that have no decl context.
Summary:
Some declarations do not have a declaration context, like TranslationUnitDecl.
Fix hasDeclContext() to not segfault on these nodes.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6003
llvm-svn: 220719
Diffstat (limited to 'libcxx/test/utilities/function.objects/comparisons/less.pass.cpp')
0 files changed, 0 insertions, 0 deletions

