mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adapt to llvm.org StringRef API change
This commit is contained in:
committed by
Michael Forster
parent
710799dd09
commit
259d78a350
@@ -2409,7 +2409,7 @@ StringRef ModuleEntity::getName() const {
|
||||
std::string ModuleEntity::getFullName() const {
|
||||
assert(!Mod.isNull());
|
||||
if (auto SwiftMod = Mod.dyn_cast<const ModuleDecl*>())
|
||||
return SwiftMod->getName().str();
|
||||
return std::string(SwiftMod->getName());
|
||||
return getClangModule(Mod)->getFullModuleName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user