Patch by Alberto Magni Original patch by Kyungwoo Lee <kyulee@microsoft.com> Differential Revision: https://reviews.llvm.org/D31388 llvm-svn: 299106