[LLVMbugs] Warning in TargetInstrInfo.h

Chris Lattner sabre at nondot.org
Sun Aug 1 11:28:18 PDT 2004


On Sun, 1 Aug 2004, Vladimir Merzliakov wrote:

> 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
>
> I can propose 2 variants of warning fixing:
>
> 1) add "return MI;"
> 2) add no retrun function call: "abort();"

How about both? :)
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040726/016687.html

Thanks!

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://nondot.org/sabre/




More information about the llvm-bugs mailing list