mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -434,8 +434,7 @@ void Verifier::visitGlobalVariable(GlobalVariable &GV) {
|
||||
if (ArrayType *ATy = dyn_cast<ArrayType>(GV.getType())) {
|
||||
StructType *STy = dyn_cast<StructType>(ATy->getElementType());
|
||||
PointerType *FuncPtrTy =
|
||||
FunctionType::get(Type::getVoidTy(*Context), false)
|
||||
->getPointerTo(GV.getType());
|
||||
FunctionType::get(Type::getVoidTy(*Context), false)->getPointerTo();
|
||||
Assert1(STy && STy->getNumElements() == 2 &&
|
||||
STy->getTypeAtIndex(0u)->isIntegerTy(32) &&
|
||||
STy->getTypeAtIndex(1) == FuncPtrTy,
|
||||
|
||||
Reference in New Issue
Block a user