summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-09-22 13:33:08 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-09-22 13:33:08 +0000
commitbfc5ef6c5b707e8112846fc5ccecbfe4d0efdbad (patch)
treeb623b1ede293291fc9580e8aa74846024fb2f403 /lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
parent7df93310f4551c266642dec2903ca5f8f2a285e5 (diff)
downloadbcm5719-llvm-bfc5ef6c5b707e8112846fc5ccecbfe4d0efdbad.tar.gz
bcm5719-llvm-bfc5ef6c5b707e8112846fc5ccecbfe4d0efdbad.zip
Change type of m_user_expression_start_pos to size_t
AbsPosToLineColumnPos is the only reader of m_user_expression_start_pos and actually treats it like a size_t. Also the value we store in m_user_expression_start_pos is originally a size_t, so it makes sense to change the type of this variable to size_t. llvm-svn: 342804
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
index 7018a58aea6..e097622113d 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
@@ -620,7 +620,7 @@ bool ClangUserExpression::Parse(DiagnosticManager &diagnostic_manager,
/// The column in the line that contains the absolute position.
/// The first character in a line is indexed as 0.
//------------------------------------------------------------------
-static void AbsPosToLineColumnPos(unsigned abs_pos, llvm::StringRef code,
+static void AbsPosToLineColumnPos(size_t abs_pos, llvm::StringRef code,
unsigned &line, unsigned &column) {
// Reset to code position to beginning of the file.
line = 0;
OpenPOWER on IntegriCloud