[LLVMdev] Compilation Failure

Daniel Berlin dberlin at dberlin.org
Tue Sep 25 06:32:53 PDT 2007


On 9/24/07, Bill Wendling <isanbard at gmail.com> wrote:
> On Sep 24, 2007, at 3:15 PM, Dale Johannesen wrote:
>
> >
> > On Sep 24, 2007, at 3:07 PM, Bill Wendling wrote:
> >
> >> A debug or release build?
> >>
> >> -bw
> >
> > Both, actually.
>
> Weird. I see a potential problem, though. The code is like this:
>
> void dumpToDOUT(SparseBitVector<> *bitmap) {
>    dump(*bitmap, DOUT);
> }
>
> where dump expects an llvm::OStream& for the second argument.
> However, when NDEBUG is #defined, DOUT is "llvm::OStream(0)", so it
> can't be passed by reference.
What compiler are you compiling with?
I build release and debug builds on darwin (and run the testsuite)
before i check in my changes :).

You can feel free to remove the function, it is simply a GDB helper :)



More information about the llvm-dev mailing list