Changeset 6121


Ignore:
Timestamp:
Jun 28, 2018, 1:19:12 PM (3 months ago)
Author:
cameron
Message:

Fixes for rand/srand signatures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.cpp

    r6120 r6121  
    13881388    Function * srandFunc = m->getFunction("srand");
    13891389    if (srandFunc == nullptr) {
    1390         FunctionType * fty = FunctionType::get(getVoidTy(), getInt32Ty(), nullptr);
     1390        FunctionType * fty = FunctionType::get(getVoidTy(), {getInt32Ty()}, false);
    13911391        srandFunc = Function::Create(fty, Function::ExternalLinkage, "srand", m);
    13921392        srandFunc->setCallingConv(CallingConv::C);
     
    13991399    Function * randFunc = m->getFunction("rand");
    14001400    if (randFunc == nullptr) {
    1401         FunctionType * fty = FunctionType::get(getInt32Ty(), nullptr);
     1401        FunctionType * fty = FunctionType::get(getInt32Ty(), false);
    14021402        randFunc = Function::Create(fty, Function::ExternalLinkage, "rand", m);
    14031403        randFunc->setCallingConv(CallingConv::C);
Note: See TracChangeset for help on using the changeset viewer.