Non-void function does not return value

Hi Chandler,

I scanned the LLVM source code, and found some potential code issues, take the piece of code in file ‘./include/llvm/Support/Allocator.h’ for example:

image005.png

image006.png

I think this is the intended use of enable_if, no?

http://en.cppreference.com/w/cpp/types/enable_if

“This metafunction is a convenient way to leverage SFINAE to conditionally remove functions from overload resolution based on type traits and to provide separate function overloads and specializations for different type traits”

– Sean Silva

image005.png

image006.png