[Lldb-commits] [lldb] 0ed233c - [lldb][NFC] Don't construct a ConstString twice in LibCxxVariant
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 10 03:23:20 PST 2020
Author: Raphael Isemann
Date: 2020-02-10T12:23:01+01:00
New Revision: 0ed233c85134e5e1581c5ef73edd1e746f6f0d0f
URL: https://github.com/llvm/llvm-project/commit/0ed233c85134e5e1581c5ef73edd1e746f6f0d0f
DIFF: https://github.com/llvm/llvm-project/commit/0ed233c85134e5e1581c5ef73edd1e746f6f0d0f.diff
LOG: [lldb][NFC] Don't construct a ConstString twice in LibCxxVariant
Added:
Modified:
lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp b/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
index f7a0b040920d..a2b1733fa59f 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
@@ -242,7 +242,7 @@ ValueObjectSP VariantFrontEnd::GetChildAtIndex(size_t idx) {
if (!head_value)
return ValueObjectSP();
- return head_value->Clone(ConstString(ConstString("Value").AsCString()));
+ return head_value->Clone(ConstString("Value"));
}
SyntheticChildrenFrontEnd *
More information about the lldb-commits
mailing list