Fix incorrect debug code
authorChris Lattner <sabre@nondot.org>
Wed, 25 Feb 2004 15:15:04 +0000 (15:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Feb 2004 15:15:04 +0000 (15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11821 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LowerSwitch.cpp

index f6e6886bb50ed6e09673b804e518c98b953b7aab..2238d7b388f40db19226ea8258325ca28b13bed7 100644 (file)
@@ -115,7 +115,8 @@ BasicBlock* LowerSwitch::switchConvert(CaseItr Begin, CaseItr End,
 
   Case& Pivot = *(Begin + Mid);
   DEBUG(std::cerr << "Pivot ==> "
-                  << cast<ConstantUInt>(Pivot.first)->getValue() << "\n");
+                  << (int64_t)cast<ConstantInt>(Pivot.first)->getRawValue()
+                  << "\n");
 
   BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val,
                                       OrigBlock, Default);