================
@@ -190,12 +196,9 @@ void InterpFrame::describe(llvm::raw_ostream &OS) const {
unsigned Off = 0;
Off += Func->hasRVO() ? primSize(PT_Ptr) : 0;
- Off += (Func->hasThisPointer() && !Func->isThisPointerExplicit())
- ? primSize(PT_Ptr)
- : 0;
-
+ Off += Func->hasThisPointer() ? primSize(PT_Ptr) : 0;
llvm::ListSeparator Comma;
- for (unsigned I = 0, N = F->getNumParams(); I < N; ++I) {
+ for (unsigned I = ExplicitInstanceParam, N = F->getNumParams(); I != N; ++I)
{
----------------
ojhunt wrote:
Maybe
```cpp
for (const ParmVarDecl* Param : F->parameters().slice(ExplicitInstanceParam)) {
...
```
https://github.com/llvm/llvm-project/pull/177551
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits