diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-25 15:15:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-25 15:15:04 +0000 |
commit | 940ff563f716c528e242caa9af06dd02407b41d0 (patch) | |
tree | a6e1d9ba3105ab6993354bdaeef08e83f659c6b3 /lib/Transforms/Utils/LowerSwitch.cpp | |
parent | 5f2c7b1975273c0cdd72d86f0b0a408d7d40137e (diff) |
Fix incorrect debug code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index f6e6886bb5..2238d7b388 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -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); |