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
This commit is contained in:
Richard Trieu 2019-07-31 04:41:05 +00:00
parent b22860da61
commit 33cdbff2a7
1 changed files with 1 additions and 1 deletions

View File

@ -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;