summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2019-07-31 04:41:05 +0000
committerRichard Trieu <rtrieu@google.com>2019-07-31 04:41:05 +0000
commit33cdbff2a78a5aef35b75b28a3a9c2103e6977b4 (patch)
treef07e0d019d0c3156b6d6dad91b6f552c9184d7be /lldb/source/Plugins/SymbolFile/PDB
parentb22860da61ad68edf1f92c6fea8afe11c9c4036b (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud