@@ -809,7 +809,7 @@ class ToElemVisitor : public Visitor {
809809 // access to the type of the class to do a GEP).
810810 auto vtable = DtoLoad (dfnval->vtable ->getType (), dfnval->vthis );
811811 auto cmp = p->ir ->CreateICmpEQ (vtable, dfnval->vtable );
812- p->ir ->CreateCall (GET_INTRINSIC_DECL (assume), {cmp});
812+ p->ir ->CreateCall (GET_INTRINSIC_DECL (assume, {} ), {cmp});
813813 }
814814
815815 if (delayedDtorVar) {
@@ -1766,7 +1766,7 @@ class ToElemVisitor : public Visitor {
17661766 p->ir ->SetInsertPoint (failedbb);
17671767
17681768 if (global.params .checkAction == CHECKACTION_halt) {
1769- p->ir ->CreateCall (GET_INTRINSIC_DECL (trap), {});
1769+ p->ir ->CreateCall (GET_INTRINSIC_DECL (trap, {} ), {});
17701770 p->ir ->CreateUnreachable ();
17711771 } else {
17721772 /* DMD Bugzilla 8360: If the condition is evaluated to true,
@@ -1923,7 +1923,7 @@ class ToElemVisitor : public Visitor {
19231923 IF_LOG Logger::print (" HaltExp::toElem: %s\n " , e->toChars ());
19241924 LOG_SCOPE;
19251925
1926- p->ir ->CreateCall (GET_INTRINSIC_DECL (trap), {});
1926+ p->ir ->CreateCall (GET_INTRINSIC_DECL (trap, {} ), {});
19271927 p->ir ->CreateUnreachable ();
19281928
19291929 // this terminated the basicblock, start a new one
0 commit comments