[LLVMbugs] Warning in TargetInstrInfo.h
Vladimir Merzliakov
wanderer at rsu.ru
Sun Aug 1 08:21:20 PDT 2004
Last nighttest run show new warnings:
lib/CodeGen/InstrSched//usr/home/wanderer/pkg/build/llvm/night/build/llvm/in
clude/llvm/Target/TargetInstrInfo.h:: warning: no return statement in
function returning non-void
Source problem is
virtual MachineBasicBlock::iterator
reverseBranchCondition(MachineBasicBlock::iterator MI) const {
assert(0 && "Target didn't implement reverseBranchCondition!");
}
I can propose 2 variants of warning fixing:
1) add "return MI;"
2) add no retrun function call: "abort();"
after assert.
Also exist variant:
3) ignore warning :)
Vladimir
More information about the llvm-bugs
mailing list