A debug or release build? -bw On Sep 24, 2007, at 2:36 PM, Dale Johannesen wrote:> > On Sep 24, 2007, at 2:29 PM, Bill Wendling wrote: > >> Hi all, >> >> Did someone forget to check-in a patch? I'm getting this error during >> compilation on PPC: > > A recent checkout compiled fine for me (on x86). > >> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >> lib/Analysis/IPA/Andersens.cpp: >> In function 'void dumpToDOUT(llvm::SparseBitVector<128u>*)': >> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >> lib/Analysis/IPA/Andersens.cpp:1189: >> error: no matching function for call to >> 'dump(llvm::SparseBitVector<128u>&, llvm::OStream)' >> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >> lib/Analysis/IPA/Andersens.cpp: >> In function 'void dumpToDOUT(llvm::SparseBitVector<128u>*)': >> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >> lib/Analysis/IPA/Andersens.cpp:1189: >> error: no matching function for call to >> 'dump(llvm::SparseBitVector<128u>&, llvm::OStream)' >> >> >> -bw >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On Sep 24, 2007, at 3:07 PM, Bill Wendling wrote:> A debug or release build? > > -bwBoth, actually.> On Sep 24, 2007, at 2:36 PM, Dale Johannesen wrote: > >> >> On Sep 24, 2007, at 2:29 PM, Bill Wendling wrote: >> >>> Hi all, >>> >>> Did someone forget to check-in a patch? I'm getting this error >>> during >>> compilation on PPC: >> >> A recent checkout compiled fine for me (on x86). >> >>> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >>> lib/Analysis/IPA/Andersens.cpp: >>> In function 'void dumpToDOUT(llvm::SparseBitVector<128u>*)': >>> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >>> lib/Analysis/IPA/Andersens.cpp:1189: >>> error: no matching function for call to >>> 'dump(llvm::SparseBitVector<128u>&, llvm::OStream)' >>> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >>> lib/Analysis/IPA/Andersens.cpp: >>> In function 'void dumpToDOUT(llvm::SparseBitVector<128u>*)': >>> /Volumes/SandBox/Clean/llvm-9999-01.roots/llvm-9999-01~obj/src/llvm/ >>> lib/Analysis/IPA/Andersens.cpp:1189: >>> error: no matching function for call to >>> 'dump(llvm::SparseBitVector<128u>&, llvm::OStream)' >>> >>> >>> -bw >>> _______________________________________________ >>> LLVM Developers mailing list >>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
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