Skip to content

Commit 86db430

Browse files
committed
utils: Adapt to llvm r325155
r325155 ("Pass a reference to a module to the bitcode writer.") changed bit writer interface from pointer to reference Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325867
1 parent 1ad6a94 commit 86db430

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libclc/utils/prepare-builtins.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ int main(int argc, char **argv) {
105105
exit(1);
106106
}
107107

108+
#if HAVE_LLVM >= 0x0700
109+
WriteBitcodeToFile(*M, Out->os());
110+
#else
108111
WriteBitcodeToFile(M, Out->os());
112+
#endif
109113

110114
// Declare success.
111115
Out->keep();

0 commit comments

Comments
 (0)