Skip to content

Commit 609b151

Browse files
committed
Work around compilation problems with clang 3.8
1 parent 1de6445 commit 609b151

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/RemoteAST/RemoteAST.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,9 @@ RemoteASTTypeBuilder::getForeignModuleKind(const Demangle::NodePointer &node) {
587587
return None;
588588

589589
return llvm::StringSwitch<Optional<ForeignModuleKind>>(node->getText())
590-
.Case(MANGLING_MODULE_OBJC, ForeignModuleKind::Imported)
591-
.Case(MANGLING_MODULE_CLANG_IMPORTER,
590+
.Case(llvm::StringLiteral::withInnerNUL(MANGLING_MODULE_OBJC),
591+
ForeignModuleKind::Imported)
592+
.Case(llvm::StringLiteral::withInnerNUL(MANGLING_MODULE_CLANG_IMPORTER),
592593
ForeignModuleKind::SynthesizedByImporter)
593594
.Default(None);
594595
}

0 commit comments

Comments
 (0)