mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 00:53:23 +01:00
Don't use llvm::getGlobalContext() anymore
This commit is contained in:
@@ -355,7 +355,7 @@ bool SimplifyDRuntimeCalls::runOnFunction(Function &F) {
|
||||
}
|
||||
|
||||
bool SimplifyDRuntimeCalls::runOnce(Function &F, const TargetData& TD, AliasAnalysis& AA) {
|
||||
IRBuilder<> Builder(llvm::getGlobalContext());
|
||||
IRBuilder<> Builder(*Context);
|
||||
|
||||
bool Changed = false;
|
||||
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
||||
|
||||
Reference in New Issue
Block a user