summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangFunction.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-10-03 22:27:29 +0000
committerSean Callanan <scallanan@apple.com>2013-10-03 22:27:29 +0000
commitddd7a2a65b24346f3d736d16315019fb54601e5b (patch)
tree0b7e1240d0e85517fd394df3a68663b6e92bf0a4 /lldb/source/Expression/ClangFunction.cpp
parent54e14615e797d8cbd62fc27ba24a54de76bb380a (diff)
downloadbcm5719-llvm-ddd7a2a65b24346f3d736d16315019fb54601e5b.tar.gz
bcm5719-llvm-ddd7a2a65b24346f3d736d16315019fb54601e5b.zip
Changed the bool conversion operator on ConstString
to be explicit, to prevent horrid things like std::string a = ConstString("foo") from taking the path ConstString -> bool -> char -> std::string. This fixes, among other things, ClangFunction. <rdar://problem/15137989> llvm-svn: 191934
Diffstat (limited to 'lldb/source/Expression/ClangFunction.cpp')
-rw-r--r--lldb/source/Expression/ClangFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangFunction.cpp b/lldb/source/Expression/ClangFunction.cpp
index 9784a578a50..171433d945b 100644
--- a/lldb/source/Expression/ClangFunction.cpp
+++ b/lldb/source/Expression/ClangFunction.cpp
@@ -162,14 +162,14 @@ ClangFunction::CompileFunction (Stream &errors)
if (trust_function)
{
- type_name = function_clang_type.GetFunctionArgumentTypeAtIndex(i).GetTypeName();
+ type_name = function_clang_type.GetFunctionArgumentTypeAtIndex(i).GetTypeName().AsCString("");
}
else
{
ClangASTType clang_qual_type = m_arg_values.GetValueAtIndex(i)->GetClangType ();
if (clang_qual_type)
{
- type_name = clang_qual_type.GetTypeName();
+ type_name = clang_qual_type.GetTypeName().AsCString("");
}
else
{
OpenPOWER on IntegriCloud