Skip to content

Commit 774d869

Browse files
committed
Fix some compiler warnings
1 parent 74e4078 commit 774d869

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/AST/ASTContext.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,13 +2201,6 @@ Identifier ASTContext::getRealModuleName(Identifier key, ModuleAliasLookupOption
22012201
return value.first;
22022202
}
22032203

2204-
namespace {
2205-
static StringRef pathStringFromSearchPath(
2206-
const SearchPathOptions::SearchPath &next) {
2207-
return next.Path;
2208-
}
2209-
}
2210-
22112204
std::vector<std::string> ASTContext::getDarwinImplicitFrameworkSearchPaths()
22122205
const {
22132206
assert(LangOpts.Target.isOSDarwin());

lib/Demangling/Remangler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,8 +2781,8 @@ ManglingError Remangler::mangleDependentProtocolConformanceOpaque(Node *node,
27812781
unsigned depth) {
27822782
DEMANGLER_ASSERT(node->getKind() == Node::Kind::DependentProtocolConformanceOpaque,
27832783
node);
2784-
mangleAnyProtocolConformance(node->getChild(0), depth + 1);
2785-
mangleType(node->getChild(1), depth + 1);
2784+
RETURN_IF_ERROR(mangleAnyProtocolConformance(node->getChild(0), depth + 1));
2785+
RETURN_IF_ERROR(mangleType(node->getChild(1), depth + 1));
27862786
Buffer << "HO";
27872787
return ManglingError::Success;
27882788
}

0 commit comments

Comments
 (0)