diff options
author | Sean Callanan <scallanan@apple.com> | 2012-11-02 22:28:08 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-11-02 22:28:08 +0000 |
commit | 7273e2d124c380fbee48ebe6c8ae56b0e24bd8a6 (patch) | |
tree | 50f8d050531c6dc9ee6cbd39af2f63595fecf525 /lldb/source/Expression/IRForTarget.cpp | |
parent | d0836fd20adddbab7104a7e201f59c47dc760001 (diff) | |
download | bcm5719-llvm-7273e2d124c380fbee48ebe6c8ae56b0e24bd8a6.tar.gz bcm5719-llvm-7273e2d124c380fbee48ebe6c8ae56b0e24bd8a6.zip |
Fixed a problem where we mistook normal result
variables for guard variables because the current
class or method named contained the letters "GV".
llvm-svn: 167327
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index e0342c995ce..967b2c4d861 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -548,7 +548,7 @@ IRForTarget::CreateResultVariable (llvm::Function &llvm_function) const char *value_name = result_name_str.c_str(); if (strstr(value_name, "$__lldb_expr_result_ptr") && - !strstr(value_name, "GV")) + strncmp(value_name, "_ZGV", 4)) { result_name = value_name; m_result_is_pointer = true; @@ -556,7 +556,7 @@ IRForTarget::CreateResultVariable (llvm::Function &llvm_function) } if (strstr(value_name, "$__lldb_expr_result") && - !strstr(value_name, "GV")) + strncmp(value_name, "_ZGV", 4)) { result_name = value_name; m_result_is_pointer = false; |