We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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();
The text was updated successfully, but these errors were encountered:
Add sanity checks for order of passes
60ee175
Fix petrv7#12
No branches or pull requests
And there are some suspicious warnings:
The text was updated successfully, but these errors were encountered: