Run Chapter 5 example:
ready> def f(x) x+1;
ready> Read function definition:define double @f(double %x) {
entry:
%addtmp = fadd double %x, 1.000000e+00
ret double %addtmp
}
ready> f(1);
ready> Evaluated to 2.000000
ready> ^Z
After ^Z and press Enter, the process crashes at the stack trace:
ucrtbase.dll!00007fff53dc286e() unknown
vcruntime140.dll!00007fff3c596e4a() unknown
> Kaleidoscope-Ch5.exe!llvm::SectionMemoryManager::~SectionMemoryManager() line 237 C++
[External Code]
Kaleidoscope-Ch5.exe!llvm::orc::RTDyldObjectLinkingLayer::handleRemoveResources(llvm::orc::JITDylib & JD, unsigned __int64 K) line 415 C++
Kaleidoscope-Ch5.exe!llvm::orc::ExecutionSession::removeResourceTracker(llvm::orc::ResourceTracker & RT) line 2290 C++
Kaleidoscope-Ch5.exe!llvm::orc::ResourceTracker::remove() line 53 C++
Kaleidoscope-Ch5.exe!llvm::orc::JITDylib::clear() line 657 C++
Kaleidoscope-Ch5.exe!llvm::orc::ExecutionSession::endSession() line 1907 C++
Kaleidoscope-Ch5.exe!llvm::orc::KaleidoscopeJIT::~KaleidoscopeJIT() line 64 C++