mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1427,7 +1427,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
|
||||
/// isZeroSizedType - This type is zero sized if its an array or structure of
|
||||
/// zero sized types. The only leaf zero sized type is an empty structure.
|
||||
static bool isMaybeZeroSizedType(const Type *Ty) {
|
||||
if (isa<OpaqueType>(Ty)) return true; // Can't say.
|
||||
if (Ty->isOpaqueTy()) return true; // Can't say.
|
||||
if (const StructType *STy = dyn_cast<StructType>(Ty)) {
|
||||
|
||||
// If all of elements have zero size, this does too.
|
||||
|
||||
Reference in New Issue
Block a user