X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=unittests%2FSupport%2FAllocatorTest.cpp;h=7789df5dc6fd28e05c8a5c51fae4c1cc4cff1682;hp=dc224925fdd642f6761265014700f583132c47d6;hb=d52e9a143f254be7ac1f2e648f3c3dbe278f4711;hpb=891198b358c79d9464bd40d94f5ba6249080741a;ds=sidebyside diff --git a/unittests/Support/AllocatorTest.cpp b/unittests/Support/AllocatorTest.cpp index dc224925fdd..7789df5dc6f 100644 --- a/unittests/Support/AllocatorTest.cpp +++ b/unittests/Support/AllocatorTest.cpp @@ -130,7 +130,7 @@ public: void *MemBase = malloc(Size + Alignment - 1 + sizeof(void*)); // Find the slab start. - void *Slab = alignPtr((char *)MemBase + sizeof(void *), Alignment); + void *Slab = (void *)alignAddr((char*)MemBase + sizeof(void *), Alignment); // Hold a pointer to the base so we can free the whole malloced block. ((void**)Slab)[-1] = MemBase;