diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2022-12-02 13:36:04 -0800 |
|---|---|---|
| committer | Jan Svoboda <jan_svoboda@apple.com> | 2022-12-02 15:36:12 -0800 |
| commit | abf0c6c0c0b7a3493c59858d175a9731eeae0ff5 (patch) | |
| tree | f823f5249783e4318128834ab3062f06828cd5db /llvm/lib/CodeGen/CallingConvLower.cpp | |
| parent | bc83d1c655c13c58e34515d8efe7784c62012437 (diff) | |
Use CTAD on llvm::SaveAndRestore
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D139229
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index f74ff30ab2e1..f49cc6427f06 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -240,8 +240,8 @@ void CCState::analyzeMustTailForwardedRegisters( // Oftentimes calling conventions will not user register parameters for // variadic functions, so we need to assume we're not variadic so that we get // all the registers that might be used in a non-variadic call. - SaveAndRestore<bool> SavedVarArg(IsVarArg, false); - SaveAndRestore<bool> SavedMustTail(AnalyzingMustTailForwardedRegs, true); + SaveAndRestore SavedVarArg(IsVarArg, false); + SaveAndRestore SavedMustTail(AnalyzingMustTailForwardedRegs, true); for (MVT RegVT : RegParmTypes) { SmallVector<MCPhysReg, 8> RemainingRegs; |
