I won't be able to look at this until tomorrow, or possibly after EuroLLVM - feel free to revert until then if it's causing problems. If you can send me a backtrace when it asserts, I can try to look at it on the train...
David On 11 Apr 2012, at 19:38, Richard Smith wrote: > On Wed, Apr 11, 2012 at 11:34 AM, David Chisnall <[email protected]> wrote: > On 11 Apr 2012, at 19:30, Richard Smith wrote: > > > Hi David, > > > > Clang now crashes in the libc++ atomics tests. Cutdown testcase: > > Sorry, I should have said it asserts: > > clang-3.1: src/lib/VMCore/Instructions.cpp:1056: void > llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == > cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be > a pointer to Val type!"' failed. > > > > > _Atomic(bool) b = true; > > > > I suspect there's an i1 / i8 confusion somewhere. > > What platform? On FreeBSD/x86-64, I have: > > On Linux/x86-64. I see: > > **************************************************** > Results for /home/richardsmith/space/libcxx/test/atomics: > using clang version 3.1 (trunk) > Target: x86_64-unknown-linux-gnu > Thread model: posix > with -std=c++0x -stdlib=libc++ > ---------------------------------------------------- > sections without tests : 0 > sections with failures : 2 > sections without failures: 12 > + ---- > total number of sections : 14 > ---------------------------------------------------- > number of tests failed : 2 > number of tests passed : 50 > + ---- > total number of tests : 52 > **************************************************** > > The failing tests are test/atomics/atomics.flag/init.pass.cpp and > test/atomics/atomics.types.generic/bool.pass.cpp. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
