Ignore:
Timestamp:
Mar 8, 2016, 2:44:20 PM (4 years ago)
Author:
hongpum
Message:

Remove unnecessary brackets when constructing one-element ArrayRef?

Suppress a compilation warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/pipeline.cpp

    r4959 r4960  
    114114    iBuilder->SetInsertPoint(pipeline_do_block);
    115115
    116     gep = iBuilder->CreateGEP(input_param, {blkNo_phi});
     116    gep = iBuilder->CreateGEP(input_param, blkNo_phi);
    117117    Value * update_blkNo = iBuilder->CreateAdd(blkNo_phi, iBuilder->getInt64(1));
    118118    blkNo_phi->addIncoming(update_blkNo, pipeline_do_block);
     
    133133    iBuilder->SetInsertPoint(pipeline_partial_block);
    134134
    135     gep = iBuilder->CreateGEP(input_param, {blkNo_phi});
     135    gep = iBuilder->CreateGEP(input_param, blkNo_phi);
    136136    mS2PKernel->generateDoBlockCall(gep);
    137137    iBuilder->CreateBr(pipeline_end_block);
Note: See TracChangeset for help on using the changeset viewer.