Skip to content

Build on LLVM 4 fails #12

Open
Open
@mchalupa

Description

@mchalupa

And there are some suspicious warnings:

/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: At global scope:
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:24:44: warning: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
 using CaseHandle = const llvm::SwitchInst::CaseHandleImpl<const llvm::SwitchInst, const llvm::ConstantInt, const llvm::BasicBlock>*;
                                            ^~~~~~~~~~~~~~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:24:25: error: expected ';'
 using CaseHandle = const llvm::SwitchInst::CaseHandleImpl<const llvm::SwitchInst, const llvm::ConstantInt, const llvm::BasicBlock>*;
                         ^~~~~
                         ;
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: In member function 'void Block::parseStoreInstruction(const llvm::Instruction&, bool, const llvm::Value*)':
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:220:14: warning: unused variable 'PT' [-Wunused-variable]
     if (auto PT = dynamic_cast<PointerType*>(type.get())) {
              ^~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: In member function 'void Block::parseSwitchInstruction(const llvm::Instruction&, bool, const llvm::Value*)':
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:495:9: error: 'CaseHandle' was not declared in this scope
         CaseHandle caseHandle = static_cast<CaseHandle>(&switchCase);
         ^~~~~~~~~~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:495:9: note: suggested alternative: 'TypeHandler'
         CaseHandle caseHandle = static_cast<CaseHandle>(&switchCase);
         ^~~~~~~~~~
         TypeHandler
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:496:15: error: 'caseHandle' was not declared in this scope
         cases[caseHandle->getCaseValue()->getSExtValue()] = func->getBlockName(caseHandle->getCaseSuccessor());
               ^~~~~~~~~~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:496:15: note: suggested alternative: 'TypeHandler'
         cases[caseHandle->getCaseValue()->getSExtValue()] = func->getBlockName(caseHandle->getCaseSuccessor());
               ^~~~~~~~~~
               TypeHandler
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:494:22: warning: unused variable 'switchCase' [-Wunused-variable]
     for (const auto& switchCase : switchIns->cases()) {
                      ^~~~~~~~~~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: In member function 'void Block::parseCallInstruction(const llvm::Instruction&, bool, const llvm::Value*)':
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:718:19: warning: unused variable 'VT' [-Wunused-variable]
     if (VoidType* VT = dynamic_cast<VoidType*>(type.get())) {
                   ^~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: In member function 'void Block::parseExtractValueInstruction(const llvm::Instruction&, bool, const llvm::Value*)':
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:835:14: warning: unused variable 'AE' [-Wunused-variable]
     if (auto AE = dynamic_cast<AsmExpr*>(expr)) {
              ^~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:846:24: warning: unused variable 'AT' [-Wunused-variable]
         if (ArrayType* AT = dynamic_cast<ArrayType*>(prevType.get())) {
                        ^~
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp: In member function 'void Block::createConstantValue(const llvm::Value*)':
/var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:1019:52: warning: passing 'const llvm::ConstantExpr' as 'this' argument discards qualifiers [-fpermissive]
         parseLLVMInstruction(*CE->getAsInstruction(), true, val);
                                                    ^
In file included from /var/tmp/xchalup4/symbiotic/llvm2c/core/Block.h:7,
                 from /var/tmp/xchalup4/symbiotic/llvm2c/core/Block.cpp:1:
/var/tmp/xchalup4/symbiotic/llvm-4.0.1/include/llvm/IR/Constants.h:1226:16: note:   in call to 'llvm::Instruction* llvm::ConstantExpr::getAsInstruction()'
   Instruction *getAsInstruction();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions