start of the 64bit safety cleanup
authorAndrew Lenharth <andrewl@lenharth.org>
Sun, 29 Jan 2006 05:07:04 +0000 (05:07 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sun, 29 Jan 2006 05:07:04 +0000 (05:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25764 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 464fa0a3dfdf3b2e33ffe6b509b65eb068898d54..56430657203139ee90084c8d6b2d3833f43094b1 100644 (file)
@@ -2079,7 +2079,7 @@ public:
         case MVT::i32: Code = "unsigned Tmp"; break;
         case MVT::i64: Code = "uint64_t Tmp"; break;
         }
-        emitCode(Code + utostr(ResNo) + "C = (unsigned)cast<ConstantSDNode>(" +
+        emitCode(Code + utostr(ResNo) + "C = (uint64_t)cast<ConstantSDNode>(" +
                  Val + ")->getValue();");
         emitCode("SDOperand Tmp" + utostr(ResNo) + 
                  " = CurDAG->getTargetConstant(Tmp" + utostr(ResNo) +