mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
ConstantInt::get{True,False} moved to LLVMContext
Non-breaking build fix for LLVM r76533. Also fixes a context related bug in GarbageCollect2Stack.
This commit is contained in:
parent
51c02d192a
commit
a398cd39b3
3 changed files with 31 additions and 32 deletions
|
@ -784,11 +784,11 @@ LLValue* DtoArrayCompare(Loc& loc, TOK op, DValue* l, DValue* r)
|
|||
break;
|
||||
case TOKleg:
|
||||
skip = true;
|
||||
res = llvm::ConstantInt::getTrue();
|
||||
res = gIR->context().getConstantIntTrue();
|
||||
break;
|
||||
case TOKunord:
|
||||
skip = true;
|
||||
res = llvm::ConstantInt::getFalse();
|
||||
res = gIR->context().getConstantIntFalse();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue