diff options
Diffstat (limited to 'lldb/source/Breakpoint/Watchpoint.cpp')
-rw-r--r-- | lldb/source/Breakpoint/Watchpoint.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/Watchpoint.cpp b/lldb/source/Breakpoint/Watchpoint.cpp index f18722a9901..45559b1901a 100644 --- a/lldb/source/Breakpoint/Watchpoint.cpp +++ b/lldb/source/Breakpoint/Watchpoint.cpp @@ -54,8 +54,7 @@ Watchpoint::Watchpoint (Target& target, lldb::addr_t addr, uint32_t size, const { // If we don't have a known type, then we force it to unsigned int of the right size. ClangASTContext *ast_context = target.GetScratchClangASTContext(); - clang_type_t clang_type = ast_context->GetBuiltinTypeForEncodingAndBitSize(eEncodingUint, 8 * size); - m_type.SetClangType(ast_context->getASTContext(), clang_type); + m_type = ast_context->GetBuiltinTypeForEncodingAndBitSize(eEncodingUint, 8 * size); } // Set the initial value of the watched variable: |