We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2486994 commit e5c1312Copy full SHA for e5c1312
lldb/tools/lldb-dap/Handler/RequestHandler.cpp
@@ -33,11 +33,12 @@ MakeArgv(const llvm::ArrayRef<std::string> &strs) {
33
34
static uint32_t SetLaunchFlag(uint32_t flags, const llvm::json::Object *obj,
35
llvm::StringRef key, lldb::LaunchFlags mask) {
36
- if (const auto opt_value = GetBoolean(obj, key))
37
- if (opt_value.value())
+ if (const auto opt_value = GetBoolean(obj, key)) {
+ if (*opt_value)
38
flags |= mask;
39
else
40
flags &= ~mask;
41
+ }
42
43
return flags;
44
}
0 commit comments