At -O0, emit an @llvm.trap() call at the end of a value-returning function which
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 15 Oct 2012 00:23:07 +0000 (00:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 15 Oct 2012 00:23:07 +0000 (00:23 +0000)
commit6b4ebcc653b63c544a9eca39441e85a5a18f140f
treeec6cdfee1c7c805b317dbb211e25113c8932c1d6
parentfeea5d6fb45ce7485c411a1234107534a4b5bd76
At -O0, emit an @llvm.trap() call at the end of a value-returning function which
fails to return a value, to make debugging this issue easier.

llvm-svn: 165914
clang/lib/CodeGen/CodeGenFunction.cpp
clang/test/CodeGenCXX/return.cpp