This commit is contained in:
Markus Hauschild
2013-06-01 21:54:08 +02:00
parent 5865c5fff0
commit f0d45c1251

View File

@@ -335,6 +335,9 @@ void CodeGenVisitor::JIT(Expression* e) {
int (*fP)() = (int (*)())(intptr_t)fPtr;
std::cout << "Evaluated to: " << fP() << std::endl;
// throw it away
f->eraseFromParent();
}
void CodeGenVisitor::putNamedValue(const std::string& name, llvm::Value* value) {