mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Use cast<> instead of unchecked dyn_cast<>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -641,7 +641,7 @@ unsigned DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const {
|
|||||||
? getPointerABIAlignment(0)
|
? getPointerABIAlignment(0)
|
||||||
: getPointerPrefAlignment(0));
|
: getPointerPrefAlignment(0));
|
||||||
case Type::PointerTyID: {
|
case Type::PointerTyID: {
|
||||||
unsigned AS = dyn_cast<PointerType>(Ty)->getAddressSpace();
|
unsigned AS = cast<PointerType>(Ty)->getAddressSpace();
|
||||||
return (abi_or_pref
|
return (abi_or_pref
|
||||||
? getPointerABIAlignment(AS)
|
? getPointerABIAlignment(AS)
|
||||||
: getPointerPrefAlignment(AS));
|
: getPointerPrefAlignment(AS));
|
||||||
|
|||||||
Reference in New Issue
Block a user