diff options
author | Richard Trieu <rtrieu@google.com> | 2019-07-31 04:41:05 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-07-31 04:41:05 +0000 |
commit | 33cdbff2a78a5aef35b75b28a3a9c2103e6977b4 (patch) | |
tree | f07e0d019d0c3156b6d6dad91b6f552c9184d7be /lldb/source/Plugins/SymbolFile/PDB | |
parent | b22860da61ad68edf1f92c6fea8afe11c9c4036b (diff) | |
download | bcm5719-llvm-33cdbff2a78a5aef35b75b28a3a9c2103e6977b4.tar.gz bcm5719-llvm-33cdbff2a78a5aef35b75b28a3a9c2103e6977b4.zip |
Change '|' to '&' in conditional.
Bitwise-or with a non-zero constant will always evaluate to true. Switch to
bitwise-and which will only evalute to true if the specified bit is set in the
other operand.
llvm-svn: 367386
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp index 664c142d7ce..d56d77a0537 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp @@ -735,7 +735,7 @@ SymbolFilePDB::ResolveSymbolContext(const lldb_private::Address &so_addr, resolve_scope & eSymbolContextLineEntry) { auto cu_sp = GetCompileUnitContainsAddress(so_addr); if (!cu_sp) { - if (resolved_flags | eSymbolContextVariable) { + if (resolved_flags & eSymbolContextVariable) { // TODO: Resolve variables } return 0; |