Skip to content

Commit 4e2ad20

Browse files
committed
[lldb][NFC] Fix build failure: adjust LanguageType comparison
1 parent 6476c97 commit 4e2ad20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Commands/CommandObjectDWIMPrint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
213213
// 2. Verify the isa pointer is a known class
214214
// 3. Require addresses to be on the heap
215215
std::string modified_expr_storage;
216-
bool is_swift = language == lldb::eLanguageTypeSwift;
216+
bool is_swift = language.AsLanguageType() == lldb::eLanguageTypeSwift;
217217
if (is_swift && is_po) {
218218
lldb::addr_t addr;
219219
bool is_integer = !expr.getAsInteger(0, addr);

0 commit comments

Comments
 (0)