Ignore:
Timestamp:
Jun 10, 2017, 7:21:21 AM (2 years ago)
Author:
cameron
Message:

Read source kernel restructure calculations using logical code units

File:
1 edited

Legend:

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

    r5498 r5500  
    288288            f->setDoesNotAlias(1);
    289289        }
    290         ptr = CreateAlloca(voidPtrTy);
    291         CallInst * success = CreateCall(f, {ptr, align, size});
     290        Value * handle = CreateAlloca(voidPtrTy);
     291        CallInst * success = CreateCall(f, {handle, align, size});
    292292        if (codegen::EnableAsserts) {
    293293            CreateAssertZero(success, "CreateAlignedMalloc: posix_memalign reported bad allocation");
    294294        }
    295         ptr = CreateLoad(ptr);
     295        ptr = CreateLoad(handle);
    296296    } else {
    297297        report_fatal_error("stdlib.h does not contain either aligned_alloc or posix_memalign");
Note: See TracChangeset for help on using the changeset viewer.