Open llvmbot opened 8 years ago
mentioned in issue llvm/llvm-bugzilla-archive#32956
Bug llvm/llvm-bugzilla-archive#32956 has been marked as a duplicate of this bug.
Stored value type does not match pointer operand type! store i8** %6, %1* %objects, align 8, !tbaa !9 %"type 0x1040351f0"
Seems that we need a cast; %6 is most likely a call (running with master under a debugger indicates that the store is for a call).
This is a const conversion for the generic type that is failing to diagnose. Changing from a generic container to id seems to work. Assignment of const ObjectType to a NSObject const seems to trigger the assertion.
Extended Description
Assertion failed: (getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file ../lib/IR/Instructions.cpp, line 1370.
0 libLLVMSupport.dylib 0x0000000103e7851b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1 libLLVMSupport.dylib 0x0000000103e77726 llvm::sys::RunSignalHandlers() + 70
2 libLLVMSupport.dylib 0x0000000103e78d71 SignalHandler(int) + 641
3 libsystem_platform.dylib 0x00007fff95fd452a _sigtramp + 26
4 libsystem_platform.dylib 0x00007fff664cb9a5 _sigtramp + 3494868117
5 libLLVMSupport.dylib 0x0000000103e78a46 abort + 22
6 libLLVMSupport.dylib 0x0000000103e78a21 __assert_rtn + 81
7 libLLVMCore.dylib 0x0000000103687763 llvm::StoreInst::AssertOK() + 211
8 libLLVMCore.dylib 0x0000000103687842 llvm::StoreInst::StoreInst(llvm::Value, llvm::Value, bool, llvm::Instruction) + 34
9 libclangCodeGen.dylib 0x00000001042a17e4 clang::CodeGen::CGBuilderTy::CreateStore(llvm::Value, clang::CodeGen::Address, bool) + 84
10 libclangCodeGen.dylib 0x000000010437a750 clang::CodeGen::CodeGenFunction::EmitStoreOfScalar(llvm::Value, clang::CodeGen::Address, bool, clang::QualType, clang::CodeGen::AlignmentSource, llvm::MDNode, bool, clang::QualType, unsigned long long, bool) + 944
11 libclangCodeGen.dylib 0x000000010436a3af clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(clang::CodeGen::RValue, clang::CodeGen::LValue, bool) + 1135
12 libclangCodeGen.dylib 0x00000001043b18d4 clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::ScalarExprEmitter, llvm::Value>::Visit(clang::Stmt) + 5140
13 libclangCodeGen.dylib 0x00000001043aa938 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const, bool) + 104
14 libclangCodeGen.dylib 0x0000000104368fa2 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const, clang::CodeGen::AggValueSlot, bool) + 66
15 libclangCodeGen.dylib 0x0000000104368f4d clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const) + 93
16 libclangCodeGen.dylib 0x0000000104450bb3 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const) + 531
17 libclangCodeGen.dylib 0x0000000104459e1b clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) + 91
18 libclangCodeGen.dylib 0x00000001043c7605 clang::CodeGen::CodeGenFunction::GenerateObjCMethod(clang::ObjCMethodDecl const) + 229
19 libclangCodeGen.dylib 0x00000001044a7cb7 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl) + 775
20 libclangCodeGen.dylib 0x00000001045250ef (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 143
21 libclangCodeGen.dylib 0x000000010448c3c5 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 165
22 libclangParse.dylib 0x00000001052ef162 clang::ParseAST(clang::Sema&, bool, bool) + 482
23 libclangFrontend.dylib 0x00000001047ff1d9 clang::FrontendAction::Execute() + 73
24 libclangFrontend.dylib 0x00000001047c56c1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1105
25 libclangFrontendTool.dylib 0x00000001048af4c5 clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 4629
26 clang-3.9 0x00000001012885cb cc1_main(llvm::ArrayRef<char const>, char const, void) + 1355
27 clang-3.9 0x0000000101287033 main + 12003
28 libdyld.dylib 0x00007fff87d615ad start + 1
Stack dump:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.9: note: diagnostic msg: /var/folders/q0/3knxpgyn5db6gs1dx9h_r3xh0000gn/T/OFXMLElement-ba16ed.m clang-3.9: note: diagnostic msg: /var/folders/q0/3knxpgyn5db6gs1dx9h_r3xh0000gn/T/OFXMLElement-ba16ed.sh clang-3.9: note: diagnostic msg: