]> granicus.if.org Git - llvm/commit
[Support] Fix a segfault in llvm::Expected.
authorLang Hames <lhames@gmail.com>
Thu, 3 Nov 2016 22:01:47 +0000 (22:01 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 3 Nov 2016 22:01:47 +0000 (22:01 +0000)
commit4373dd0316a6d3fa4572bfa9d1fbd9f83b80b865
tree5eb85bc1551c7ff12eabdbd653f0337817a777d8
parent298455f3770d09ba3dcb690aaae0bb4a1c050415
[Support] Fix a segfault in llvm::Expected.

This fixes a mismatch between the declared error_type and the type used with
the placement new that initializes the field.

Patch by Yichao Yu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285970 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Error.h