OSDN Git Service

[LCG] Fix an assert in a on-scope-exit lambda that checked the contents
authorChandler Carruth <chandlerc@gmail.com>
Thu, 10 Aug 2017 03:05:21 +0000 (03:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 10 Aug 2017 03:05:21 +0000 (03:05 +0000)
commit0302f3db41184435af0ba451755b515815c16306
tree988a38e918a15fbbfd35c9798f360682c238df08
parent8d76d00d95ccae7f432c545495bfe3bfba607257
[LCG] Fix an assert in a on-scope-exit lambda that checked the contents
of the returned value.

Checking the returned value from inside of a scoped exit isn't actually
valid. It happens to work when NRVO fires and the stars align, which
they reliably do with Clang but don't, for example, on MSVC builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyCallGraph.cpp