mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
Add casts for documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
169bffe28a
commit
4a94a70250
@ -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