[LLVMdev] Compilation Failure

Bill Wendling isanbard at gmail.com
Mon Sep 24 15:23:36 PDT 2007


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.

-bw




More information about the llvm-dev mailing list