Continuation of https://reviews.llvm.org/D134057. Implement passing a This pointer to instance functions as well as handling the RVO pointer. For the latter, I'm sure there are a lot of details left, but for now this works pretty well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Generally looks reasonable to me.
| clang/test/AST/Interp/records.cpp | ||
|---|---|---|
| 47–50 | Can you think of a reasonable way for us to test that you're handling the RVO pointer properly? | |
| clang/test/AST/Interp/records.cpp | ||
|---|---|---|
| 47–50 | I think this is tested already by any function returning a non-primitive value, i.e. a struct or an array, e.g. getInts() above. | |
Can you think of a reasonable way for us to test that you're handling the RVO pointer properly?