fix build on 64 bit hosts
authorAndrew Lenharth <andrewl@lenharth.org>
Tue, 24 Jan 2006 21:26:43 +0000 (21:26 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Tue, 24 Jan 2006 21:26:43 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25591 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index 993207d0f258f4626449882a8c56b6ec82c3db89..c3958906b61cf85379de06c8d6063312a3faa2fe 100644 (file)
@@ -645,7 +645,7 @@ void DIEAbbrev::Emit(const DwarfWriter &DW) const {
 #ifndef NDEBUG
   void DIEAbbrev::print(std::ostream &O) {
     O << "Abbreviation @"
-      << std::hex << (unsigned)this << std::dec
+      << std::hex << (unsigned long)this << std::dec
       << "  "
       << TagString(Tag)
       << " "