Skip to content
Commit 9c161e89 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[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.

llvm-svn: 310547
parent a95eae2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment