Skip to content

Commit c369a96

Browse files
committed
Don't use getRealModuleName for lldb module loader for now
1 parent 7f9dbef commit c369a96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Serialization/SerializedModuleLoader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,14 +1226,13 @@ MemoryBufferSerializedModuleLoader::loadModule(SourceLoc importLoc,
12261226
return nullptr;
12271227

12281228
auto moduleID = path[0];
1229-
auto moduleName = Ctx.getRealModuleName(moduleID.Item).str();
12301229

12311230
// See if we find it in the registered memory buffers.
12321231

12331232
// FIXME: Right now this works only with access paths of length 1.
12341233
// Once submodules are designed, this needs to support suffix
12351234
// matching and a search path.
1236-
auto bufIter = MemoryBuffers.find(moduleName);
1235+
auto bufIter = MemoryBuffers.find(moduleID.Item.str());
12371236
if (bufIter == MemoryBuffers.end())
12381237
return nullptr;
12391238

0 commit comments

Comments
 (0)