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:
parent
68c032623c
commit
04437c9749
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user