Enable these builtins to be called across a lambda
boundary, as brought up by Eli here: https://reviews.llvm.org/D48040
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
| lib/Sema/SemaChecking.cpp | ||
|---|---|---|
| 231 | Is it possible for this initialization to fail? If it can't fail, please add an assertion; otherwise, you probably need to "return true". (Not sure off the top of my head how that would happen; maybe it would error out on a volatile int*?) | |
Comment Actions
Add error checking to perform copy init.
| lib/Sema/SemaChecking.cpp | ||
|---|---|---|
| 231 | You're correct, it apparently can fail! I've added a test to return true. Based on a reading of the code, performcopyinit diagnoses, so I think this patch should be correct. | |
Is it possible for this initialization to fail? If it can't fail, please add an assertion; otherwise, you probably need to "return true". (Not sure off the top of my head how that would happen; maybe it would error out on a volatile int*?)