Skip to content
Commit 9f9e5826 authored by Richard Smith's avatar Richard Smith
Browse files

If we flow off the end of a value-returning function:

 - outside C++, return undef (behavior is not undefined unless the value is used)
 - in C++, with -fcatch-undefined-behavior, perform an appropriate trap
 - in C++, produce an 'unreachable' (behavior is undefined immediately)

llvm-svn: 165273
parent 4d6cd886
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment