diff --git a/tools/drawergen/drawergen.cpp b/tools/drawergen/drawergen.cpp index a37f2f26e..a306f36af 100644 --- a/tools/drawergen/drawergen.cpp +++ b/tools/drawergen/drawergen.cpp @@ -599,6 +599,10 @@ std::vector LLVMProgram::GenerateObjectFile(std::string cpuName) PerModulePasses.run(*module); // Return the resulting object file + stream.flush(); +#if LLVM_VERSION_MAJOR < 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 8) + vecstream.flush(); +#endif std::vector data; data.resize(str.size()); memcpy(data.data(), str.data(), data.size());