aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2023-05-30 17:12:35 -0700
committerJim Ingham <jingham@apple.com>2023-05-30 17:12:35 -0700
commit14186773e79b8c6787afac2f9ee69738151377ec (patch)
tree9e510f99af8872bb72b34252a4785d6823797179 /clang/lib/Frontend/CompilerInvocation.cpp
parentaaa33b6a98de2be7cdc827b13e60c103206d6461 (diff)
downloadllvm-14186773e79b8c6787afac2f9ee69738151377ec.zip
llvm-14186773e79b8c6787afac2f9ee69738151377ec.tar.gz
llvm-14186773e79b8c6787afac2f9ee69738151377ec.tar.bz2
Fix SBValue::FindValue for file static variables
This was just a thinko. The API StackFrame::GetVariableList takes a bool for "get_file_globals" which if true will also find file statics and file globals. But we only were passing that as true if the ValueType was eValueTypeVariableGlobal, which meant that we never find file statics. It's okay if we cast too wide a net when we do GetVariableList as later on we check against the ValueType to filter globals from statics. There was a test that had a whole bunch of globals and tested FindValue on all of them, but had no statics. So I just made one of the globals a file static, which verifies the fix. Differential Revision: https://reviews.llvm.org/D151392
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions