[Lldb-commits] [lldb] 1a77955 - [lldb][NFC] Don't call call formatv for no reason in LibCxxOptional
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 10 03:40:14 PST 2020
Author: Raphael Isemann
Date: 2020-02-10T12:39:42+01:00
New Revision: 1a779550aa1d94f1c0ea8a22c98a850600be6144
URL: https://github.com/llvm/llvm-project/commit/1a779550aa1d94f1c0ea8a22c98a850600be6144
DIFF: https://github.com/llvm/llvm-project/commit/1a779550aa1d94f1c0ea8a22c98a850600be6144.diff
LOG: [lldb][NFC] Don't call call formatv for no reason in LibCxxOptional
Added:
Modified:
lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp b/lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp
index ead0746c22c1..e6de525e7d79 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp
@@ -71,7 +71,7 @@ ValueObjectSP OptionalFrontEnd::GetChildAtIndex(size_t idx) {
if (!holder_type)
return ValueObjectSP();
- return val_sp->Clone(ConstString(llvm::formatv("Value").str()));
+ return val_sp->Clone(ConstString("Value"));
}
SyntheticChildrenFrontEnd *
More information about the lldb-commits
mailing list