Commit 3a6ed4c4 authored by cianciosa's avatar cianciosa
Browse files

Uncomment verbose check when printing values. Check return type of addIRModule.

parent 16e82f54
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -134,11 +134,11 @@ namespace gpu {
#else
            args.push_back("-O3");
#endif
            //if (jit::verbose) {
            if (jit::verbose) {
                for (auto &arg : args) {
                    std::cout << "    " << arg << std::endl;
                }
            //}
            }

            llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> diagnostic_options;
            auto diagnostic_printer = std::make_unique<clang::TextDiagnosticPrinter> (llvm::errs(),
@@ -181,7 +181,7 @@ namespace gpu {
            }
            jit = std::move(jit_try.get());

            jit->addIRModule(llvm::orc::ThreadSafeModule(std::move(ir_module),
            auto error = jit->addIRModule(llvm::orc::ThreadSafeModule(std::move(ir_module),
                                                                      llvm::orc::ThreadSafeContext(std::move(context))));
        }