summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2017-02-13 22:04:02 +0000
committerGreg Clayton <gclayton@apple.com>2017-02-13 22:04:02 +0000
commit6d325cb5cb2c9d3c9780926ea87da992b09de583 (patch)
tree3b7fc1a151756582041369a963a05e36278ff2d5 /lldb/packages/Python/lldbsuite/test/python_api
parent5d0c114630f3f8206a69ba7b5e649570dc8196bc (diff)
downloadbcm5719-llvm-6d325cb5cb2c9d3c9780926ea87da992b09de583.tar.gz
bcm5719-llvm-6d325cb5cb2c9d3c9780926ea87da992b09de583.zip
Fix buildbots.
llvm-svn: 294991
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py b/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
index 024b157ab0d..3d228069dc2 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
@@ -43,7 +43,7 @@ class TestNameLookup(TestBase):
for i in range(num_symbols):
symbol = exe_module.GetSymbolAtIndex(i);
name = symbol.GetName()
- if 'unique_function_name' in name:
+ if name and 'unique_function_name' in name:
mangled = symbol.GetMangledName()
if mangled:
mangled_to_symbol[mangled] = symbol
OpenPOWER on IntegriCloud