mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-15 01:37:53 +00:00
Use cast<> instead of unchecked dyn_cast<>
llvm-svn: 218085
This commit is contained in:
parent
d4a588f39e
commit
354b742df5
@ -641,7 +641,7 @@ unsigned DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const {
|
||||
? getPointerABIAlignment(0)
|
||||
: getPointerPrefAlignment(0));
|
||||
case Type::PointerTyID: {
|
||||
unsigned AS = dyn_cast<PointerType>(Ty)->getAddressSpace();
|
||||
unsigned AS = cast<PointerType>(Ty)->getAddressSpace();
|
||||
return (abi_or_pref
|
||||
? getPointerABIAlignment(AS)
|
||||
: getPointerPrefAlignment(AS));
|
||||
|
Loading…
x
Reference in New Issue
Block a user