[Lldb-commits] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread Ping Charoenwet via lldb-commits

https://github.com/phnx created https://github.com/llvm/llvm-project/pull/118991

None

>From 70aaac37244f2eab385e69dbdd00ebe01caa2400 Mon Sep 17 00:00:00 2001
From: Ping Charoenwet 
Date: Fri, 6 Dec 2024 22:52:50 +0700
Subject: [PATCH] Fix typo in `StackFrame.cpp`

---
 lldb/source/Target/StackFrame.cpp | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lldb/source/Target/StackFrame.cpp 
b/lldb/source/Target/StackFrame.cpp
index dfbac5a572d00a..2633c976c13bf4 100644
--- a/lldb/source/Target/StackFrame.cpp
+++ b/lldb/source/Target/StackFrame.cpp
@@ -670,8 +670,8 @@ ValueObjectSP 
StackFrame::LegacyGetValueForVariableExpressionPath(
 }
   }
 
-  // If we have a non pointer type with a sythetic value then lets check if
-  // we have an sythetic dereference specified.
+  // If we have a non-pointer type with a synthetic value then lets check 
if
+  // we have a synthetic dereference specified.
   if (!valobj_sp->IsPointerType() && valobj_sp->HasSyntheticValue()) {
 Status deref_error;
 if (valobj_sp->GetCompilerType().IsReferenceType()) {
@@ -686,13 +686,13 @@ ValueObjectSP 
StackFrame::LegacyGetValueForVariableExpressionPath(
 valobj_sp = valobj_sp->Dereference(deref_error);
 if (!valobj_sp || deref_error.Fail()) {
   error = Status::FromErrorStringWithFormatv(
-  "Failed to dereference sythetic value: {0}", deref_error);
+  "Failed to dereference synthetic value: {0}", deref_error);
   return ValueObjectSP();
 }
 // Some synthetic plug-ins fail to set the error in Dereference
 if (!valobj_sp) {
   error =
-  Status::FromErrorString("Failed to dereference sythetic value");
+  Status::FromErrorString("Failed to dereference synthetic value");
   return ValueObjectSP();
 }
 expr_is_ptr = false;

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lldb] [lldb] Fix typo in `StackFrame.cpp` (PR #118991)

2024-12-06 Thread Ping Charoenwet via lldb-commits

https://github.com/phnx edited https://github.com/llvm/llvm-project/pull/118991
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits