1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Add casts for documentation

llvm-svn: 2272
This commit is contained in:
Chris Lattner 2002-04-16 22:10:52 +00:00
parent 68c032623c
commit 04437c9749

View File

@ -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();
}