[llvm-bugs] [Bug 32956] New: Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file /Users/js/Devel/LLVM/lib/IR/Instructions.cpp, line 1433.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 7 09:09:22 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32956

            Bug ID: 32956
           Summary: Assertion failed: (getOperand(0)->getType() ==
                    cast<PointerType>(getOperand(1)->getType())->getElemen
                    tType() && "Ptr must be a pointer to Val type!"),
                    function AssertOK, file
                    /Users/js/Devel/LLVM/lib/IR/Instructions.cpp, line
                    1433.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: js-llvm-bugzilla at webkeks.org
                CC: llvm-bugs at lists.llvm.org

Assertion failed: (getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"), function AssertOK, file
/Users/js/Devel/LLVM/lib/IR/Instructions.cpp, line 1433.
0  libLLVMSupport.dylib       0x000000010723bfc8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  libLLVMSupport.dylib       0x000000010723c676 SignalHandler(int) + 454
2  libsystem_platform.dylib   0x00007fffdd885b3a _sigtramp + 26
3  libsystem_platform.dylib   0x00007fe900000000 _sigtramp + 578266336
4  libsystem_c.dylib          0x00007fffdd70a420 abort + 129
5  libsystem_c.dylib          0x00007fffdd6d1893 basename_r + 0
6  libLLVMCore.dylib          0x00000001068faa3d llvm::StoreInst::AssertOK() +
205
7  libLLVMCore.dylib          0x00000001068faad8
llvm::StoreInst::StoreInst(llvm::Value*, llvm::Value*, bool,
llvm::Instruction*) + 24
8  libclangCodeGen.dylib      0x00000001076ee2c4
llvm::IRBuilder<llvm::ConstantFolder,
clang::CodeGen::CGBuilderInserter>::CreateStore(llvm::Value*, llvm::Value*,
bool) + 68
9  libclangCodeGen.dylib      0x00000001077dacc8
clang::CodeGen::CodeGenFunction::EmitStoreOfScalar(llvm::Value*,
clang::CodeGen::Address, bool, clang::QualType,
clang::CodeGen::AlignmentSource, llvm::MDNode*, bool, clang::QualType, unsigned
long long, bool) + 728
10 libclangCodeGen.dylib      0x00000001077ca099
clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(clang::CodeGen::RValue,
clang::CodeGen::LValue, bool) + 1129
11 libclangCodeGen.dylib      0x00000001077b1bba
clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 554
12 libclangCodeGen.dylib      0x00000001077b4757
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 311
13 libclangCodeGen.dylib      0x00000001077b35a7
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 711
14 libclangCodeGen.dylib      0x00000001077b01f5
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 325
15 libclangCodeGen.dylib      0x00000001077afd65
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 245
16 libclangCodeGen.dylib      0x00000001078cedfb
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 155
17 libclangCodeGen.dylib      0x00000001078c7df6
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 406
18 libclangCodeGen.dylib      0x00000001078c7117
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 199
19 libclangCodeGen.dylib      0x00000001078cfa5b
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 91
20 libclangCodeGen.dylib      0x000000010782c41e
clang::CodeGen::CodeGenFunction::GenerateObjCMethod(clang::ObjCMethodDecl
const*) + 222
21 libclangCodeGen.dylib      0x00000001079263dc
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1212
22 libclangCodeGen.dylib      0x00000001079ab95f (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 143
23 libclangCodeGen.dylib      0x00000001079084ea
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 186
24 libclangParse.dylib        0x0000000108ba0a12 clang::ParseAST(clang::Sema&,
bool, bool) + 386
25 libclangFrontend.dylib     0x0000000107cf7ebc
clang::FrontendAction::Execute() + 76
26 libclangFrontend.dylib     0x0000000107cb63b1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1201
27 libclangFrontendTool.dylib 0x0000000107db55d6
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4934
28 clang-5.0                  0x0000000103f59183 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1395
29 clang-5.0                  0x0000000103f57496 main + 10390
30 libdyld.dylib              0x00007fffdd676235 start + 1
Stack dump:
0.      Program arguments: /usr/local/bin/clang-5.0 -cc1 -triple
x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -disable-free -main-file-name
OFXMLElement.m -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn
-target-linker-version 278.4 -dwarf-column-info -debug-info-kind=standalone
-dwarf-version=4 -debugger-tuning=lldb -coverage-notes-file
/Users/js/Devel/ObjFW/src/OFXMLElement.lib.gcno -resource-dir
/usr/local/lib/clang/5.0.0 -D PIC -I . -I .. -I exceptions -I runtime -D
OF_COMPILING_OBJFW -cxx-isystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
-O2 -Wall -Wshorten-64-to-32 -Wsemicolon-before-method-body
-Wobjc-missing-property-synthesis -Wsign-compare -Wwrite-strings
-Wpointer-arith -Werror -Wcast-align -Wunreachable-code -Wdocumentation
-pedantic -std=gnu11 -fconst-strings -fdebug-compilation-dir
/Users/js/Devel/ObjFW/src -fconstant-string-class OFConstantString
-ferror-limit 19 -fmessage-length 162 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature
-fobjc-exceptions -fexceptions -fno-constant-cfstrings -fmax-type-align=16
-fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o OFXMLElement.lib.o -x objective-c OFXMLElement.m 
1.      <eof> parser at end of file
2.      OFXMLElement.m:78:1: LLVM IR generation of declaration
'OFXMLElement::initialize'
clang-5.0: error: unable to execute command: Abort trap: 6
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (git at github.com:llvm-mirror/clang.git
84f57d869ba15eb9b12abc57014d530647a00e01) (git at github.com:llvm-mirror/llvm.git
2c224bcd52a7f0e561e2729d1085fd390e20e189)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg:
/var/folders/q0/3knxpgyn5db6gs1dx9h_r3xh0000gn/T/OFXMLElement-929fce.m
clang-5.0: note: diagnostic msg:
/var/folders/q0/3knxpgyn5db6gs1dx9h_r3xh0000gn/T/OFXMLElement-929fce.sh
clang-5.0: note: diagnostic msg: Crash backtrace is located in
clang-5.0: note: diagnostic msg:
/Users/js/Library/Logs/DiagnosticReports/clang-5.0_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-5.0: note: diagnostic msg: (choose the .crash file that corresponds to
your crash)
clang-5.0: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170507/91f5f0a9/attachment-0001.html>


More information about the llvm-bugs mailing list