diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-16 18:32:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-16 18:32:33 +0000 |
commit | 8e2e5f74daf4dfa741634c4b1e2c65d5dcd18c2e (patch) | |
tree | af0f28735ded2ea7ac1d9eceeba24edf4dcc58b8 /lib/Transforms/TransformInternals.h | |
parent | 6170504cce6b75698d559745892913ebd50f464c (diff) | |
download | external_llvm-8e2e5f74daf4dfa741634c4b1e2c65d5dcd18c2e.zip external_llvm-8e2e5f74daf4dfa741634c4b1e2c65d5dcd18c2e.tar.gz external_llvm-8e2e5f74daf4dfa741634c4b1e2c65d5dcd18c2e.tar.bz2 |
Fix: test/Regression/LLC/badidx.c problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 7a2dbf1..867dd5d 100644 --- a/lib/Transforms/TransformInternals.h +++ b/lib/Transforms/TransformInternals.h @@ -23,10 +23,10 @@ // extern const TargetData TD; -static inline int getConstantValue(const ConstantInt *CPI) { +static inline int64_t getConstantValue(const ConstantInt *CPI) { if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI)) - return (int)CSI->getValue(); - return (int)cast<ConstantUInt>(CPI)->getValue(); + return CSI->getValue(); + return (int64_t)cast<ConstantUInt>(CPI)->getValue(); } |