diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-13 14:13:39 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-13 14:13:39 +0000 |
commit | a23b25031e48d03868095f22a5fd7af20870ccbd (patch) | |
tree | c7ff3dacbba484a56ca1d3f96dadd18483fbcb9c | |
parent | ed9cc4079452e827c8cd0f6d4f18d1bbc3258f03 (diff) | |
download | bcm5719-llvm-a23b25031e48d03868095f22a5fd7af20870ccbd.tar.gz bcm5719-llvm-a23b25031e48d03868095f22a5fd7af20870ccbd.zip |
[lldb] Fix Microsoft guard variable detection
Apparently we need to check for a suffix, not a prefix. This broke
probably broke expression evaluation on Windows.
llvm-svn: 368695
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp index 20049e0f2f4..b266b5553ed 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp @@ -160,7 +160,7 @@ static bool isGuardVariableSymbol(llvm::StringRef mangled_symbol, bool check_ms_abi = true) { bool result = mangled_symbol.startswith("_ZGV"); // Itanium ABI guard variable if (check_ms_abi) - result |= mangled_symbol.startswith("@4IA"); // Microsoft ABI + result |= mangled_symbol.endswith("@4IA"); // Microsoft ABI return result; } |