]> granicus.if.org Git - clang/commit
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)
commit802cd5b1974bab2038b9d3c969d9beb0ab34f435
treee8beb1b6f1bffafeb96c93264dd924fd6625d323
parenta2e94892e273423e2f772f989921cda6442a66c4
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165914 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenCXX/return.cpp