Skip to content

Commit 9d6dc72

Browse files
committed
[IRGen/Reflection] Emit built-in reflection metadata in JIT mode
Since Mirrors are using swift_getFieldAt we need built-in type metadata present in JIT/REPL mode as well, otherwise some of the types are going to become unprintable.
1 parent eb31681 commit 9d6dc72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ static std::unique_ptr<llvm::Module> performIRGeneration(IRGenOptions &Opts,
767767

768768
// Register our info with the runtime if needed.
769769
if (Opts.UseJIT) {
770+
IGM.emitBuiltinReflectionMetadata();
770771
IGM.emitRuntimeRegistration();
771772
} else {
772773
// Emit protocol conformances into a section we can recognize at runtime.

0 commit comments

Comments
 (0)