Skip to content

Commit 6cb18a0

Browse files
committed
prepare-builtins: Remove call to getGlobalContext()
This function has been removed from LLVM. Patch By: Laurent Carlier llvm-svn: 266430
1 parent 11c7fd3 commit 6cb18a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/utils/prepare-builtins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ OutputFilename("o", cl::desc("Output filename"),
2424
cl::value_desc("filename"));
2525

2626
int main(int argc, char **argv) {
27-
LLVMContext &Context = getGlobalContext();
27+
LLVMContext Context;
2828
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
2929

3030
cl::ParseCommandLineOptions(argc, argv, "libclc builtin preparation tool\n");

0 commit comments

Comments
 (0)