Author: Timm Bäder Date: 2023-09-24T09:56:48+02:00 New Revision: 3935a18a5c22e07a3afe31afd007457d3cec8133
URL: https://github.com/llvm/llvm-project/commit/3935a18a5c22e07a3afe31afd007457d3cec8133 DIFF: https://github.com/llvm/llvm-project/commit/3935a18a5c22e07a3afe31afd007457d3cec8133.diff LOG: [clang][Interp][NFC] Use GetPtrThisField intead of two ops Added: Modified: clang/lib/AST/Interp/ByteCodeStmtGen.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeStmtGen.cpp b/clang/lib/AST/Interp/ByteCodeStmtGen.cpp index 22a6908daf8b3c2..15eae8e20b3a678 100644 --- a/clang/lib/AST/Interp/ByteCodeStmtGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeStmtGen.cpp @@ -171,10 +171,7 @@ bool ByteCodeStmtGen<Emitter>::visitFunc(const FunctionDecl *F) { } else { // Non-primitive case. Get a pointer to the field-to-initialize // on the stack and call visitInitialzer() for it. - if (!this->emitThis(InitExpr)) - return false; - - if (!this->emitGetPtrField(F->Offset, InitExpr)) + if (!this->emitGetPtrThisField(F->Offset, InitExpr)) return false; if (!this->visitInitializer(InitExpr)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits