OSDN Git Service

Prevent at compile time converting from Error::success() to Expected<T>
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 11 Nov 2016 04:29:25 +0000 (04:29 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 11 Nov 2016 04:29:25 +0000 (04:29 +0000)
commit5652444405b88fddf3eba4e86ba1f345d651fe8c
tree39e08d933ec9116101117f91b98648c7249ec58c
parentdf0b8bce48aa981e5f33a754f66c95f8c46f7709
Prevent at compile time converting from Error::success() to Expected<T>

This would trigger an assertion at runtime otherwise.

Differential Revision: https://reviews.llvm.org/D26482

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286562 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Error.h
lib/Bitcode/Reader/BitcodeReader.cpp
unittests/Support/ErrorTest.cpp