search for: boost_unreachable_return

Displaying 3 results from an estimated 3 matches for "boost_unreachable_return".

2007 Jun 01
0
[LLVMdev] Advice on a VStudio specific patch
...ing that since that actually fails, you have warnings-as-errors on. In compilers with good flow analysis that do have noreturn abort, the extra return should trigger an "unreachable code" warning, which will also prevent compilation with treat warnings as errors on... I know boost has a BOOST_UNREACHABLE_RETURN(x) macro for that situation; Perhaps LLVM should have something similar? ~ Scott McMurray
2007 May 31
4
[LLVMdev] Advice on a VStudio specific patch
Here are the two problem areas: RegisterInfoEmitter.cpp // Emit the subregister + index mapping function based on the information // calculated above. OS << "unsigned " << ClassName << "::getSubReg(unsigned RegNo, unsigned Index) const {\n" << " switch (RegNo) {\n" << " default: abort(); break;\n"; ...
2007 Jun 01
1
[LLVMdev] Advice on a VStudio specific patch
...ing that since that actually fails, you have warnings-as-errors on. In compilers with good flow analysis that do have noreturn abort, the extra return should trigger an "unreachable code" warning, which will also prevent compilation with treat warnings as errors on... I know boost has a BOOST_UNREACHABLE_RETURN(x) macro for that situation; Perhaps LLVM should have something similar? ~ Scott McMurray _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev