diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-16 22:10:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-16 22:10:52 +0000 |
commit | 4a94a702508c97f36dfd19eb6ee8e02848007684 (patch) | |
tree | e7df5b54c75a38bd5663cfeef774121f3d07601b /lib/Transforms/TransformInternals.h | |
parent | 169bffe28abf10344761cb76087f9a6209611659 (diff) | |
download | external_llvm-4a94a702508c97f36dfd19eb6ee8e02848007684.zip external_llvm-4a94a702508c97f36dfd19eb6ee8e02848007684.tar.gz external_llvm-4a94a702508c97f36dfd19eb6ee8e02848007684.tar.bz2 |
Add casts for documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 30e3990..a93f63e 100644 --- a/lib/Transforms/TransformInternals.h +++ b/lib/Transforms/TransformInternals.h @@ -26,8 +26,8 @@ extern const TargetData TD; static inline int getConstantValue(const ConstantInt *CPI) { if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI)) - return CSI->getValue(); - return cast<ConstantUInt>(CPI)->getValue(); + return (int)CSI->getValue(); + return (int)cast<ConstantUInt>(CPI)->getValue(); } |