Mercurial > projects > ldc
diff gen/functions.cpp @ 1535:61f12f4651b5
Don't use llvm::getGlobalContext() anymore
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 20:16:15 +0200 |
parents | 8ca25bd765a3 |
children | 1d5c3354b3c2 |
line wrap: on
line diff
--- a/gen/functions.cpp Mon Jul 13 12:17:58 2009 +0200 +++ b/gen/functions.cpp Mon Jul 13 20:16:15 2009 +0200 @@ -811,7 +811,7 @@ } } else - llvm::ReturnInst::Create(llvm::getGlobalContext().getNullValue(func->getReturnType()), bb); + llvm::ReturnInst::Create(gIR->context().getNullValue(func->getReturnType()), bb); } // std::cout << *func << std::endl;