summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-18 19:28:30 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-18 19:28:30 +0000
commitf5df537d2619d3b22228161453d5d836b5deab32 (patch)
tree7d1530804be7e24e38cc9a8c9dd6b520b5252a05
parent96d812a68d3fcdaf34faf601f247a1cea6faf083 (diff)
downloadbcm5719-llvm-f5df537d2619d3b22228161453d5d836b5deab32.tar.gz
bcm5719-llvm-f5df537d2619d3b22228161453d5d836b5deab32.zip
Fix build under gcc.
Patch from Dawn. llvm-svn: 142402
-rw-r--r--lldb/source/Host/common/FileSpec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp
index 35e12ebdb57..b6e6e94d846 100644
--- a/lldb/source/Host/common/FileSpec.cpp
+++ b/lldb/source/Host/common/FileSpec.cpp
@@ -711,7 +711,7 @@ FileSpec::GetFileNameExtension () const
if (filename == NULL)
return ConstString();
- char* dot_pos = strrchr(filename, '.');
+ const char* dot_pos = strrchr(filename, '.');
if (dot_pos == NULL)
return ConstString();
@@ -725,7 +725,7 @@ FileSpec::GetFileNameStrippingExtension () const
if (filename == NULL)
return ConstString();
- char* dot_pos = strrchr(filename, '.');
+ const char* dot_pos = strrchr(filename, '.');
if (dot_pos == NULL)
return m_filename;
OpenPOWER on IntegriCloud