Skip to content

Commit 70e9e6b

Browse files
committed
[NFC] ASTPrinter: Remove unneeded list resize.
Don't bother saving the previous ExcludeAttrList's size and restoring it after execution when that list isn't modified.
1 parent 96a5a1c commit 70e9e6b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,10 +3089,8 @@ suppressingFeatureSendingArgsAndResults(PrintOptions &options,
30893089
static void
30903090
suppressingFeatureBitwiseCopyable2(PrintOptions &options,
30913091
llvm::function_ref<void()> action) {
3092-
unsigned originalExcludeAttrCount = options.ExcludeAttrList.size();
30933092
llvm::SaveAndRestore<bool> scope(options.SuppressBitwiseCopyable, true);
30943093
action();
3095-
options.ExcludeAttrList.resize(originalExcludeAttrCount);
30963094
}
30973095

30983096
static void

0 commit comments

Comments
 (0)