mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In the REPL, allow access to the Builtin module if explicitly imported,
there is no reason to deny it and it could be theoretically useful. Swift SVN r5779
This commit is contained in:
@@ -107,7 +107,7 @@ bool swift::appendToREPLTranslationUnit(TranslationUnit *TU,
|
||||
llvm::MemoryBuffer *Buffer,
|
||||
unsigned &BufferOffset,
|
||||
unsigned BufferEndOffset) {
|
||||
assert(TU->Kind == TranslationUnit::Repl && "Can't append to a non-REPL TU");
|
||||
assert(TU->Kind == TranslationUnit::REPL && "Can't append to a non-REPL TU");
|
||||
|
||||
RC.CurBufferID
|
||||
= TU->getASTContext().SourceMgr.AddNewSourceBuffer(Buffer, llvm::SMLoc());
|
||||
|
||||
Reference in New Issue
Block a user