[Bug 44736] New: Incorrect use of llvm::toStringRef in TypeSystem.cpp

Bug ID 44736
Summary Incorrect use of llvm::toStringRef in TypeSystem.cpp
Product lldb
Version 10.0
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter cebtenzzre@gmail.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Commit 0e252e3 ("[Symbol] Use llvm::Expected when getting TypeSystems")
introduced several calls to llvm::toStringRef in
'lldb/source/Symbol/TypeSystem.cpp', each with a single 'const char *'
argument. The best matching overload is llvm::toStringRef(bool), resulting in
some unhelpful error messages.

Expected Behavior:

Internal error messages look like "TypeSystem for language swift doesn't
exist".

Actual Behavior:

Internal error messages look like "TypeSystem for language true doesn't exist".

Jonas Devlieghere changed bug 44736