================
@@ -3784,7 +3776,7 @@ void CXXNameMangler::mangleBareFunctionType(const 
FunctionProtoType *Proto,
     }
     mangleType(ReturnTy);
 
-    FunctionTypeDepth.leaveResultType();
+    FunctionTypeDepth.leaveFunctionDeclSuffix();
----------------
AaronBallman wrote:

Would it make sense to add an RAII object to do the enter/leave calls? I worry 
about the possibility of adding a `return` in here someday that breaks this.

https://github.com/llvm/llvm-project/pull/196240
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to