Skip to content

Commit 6bc2013

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 1521cd5 commit 6bc2013

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
@@ -3141,10 +3141,8 @@ suppressingFeatureSendingArgsAndResults(PrintOptions &options,
31413141
static void
31423142
suppressingFeatureBitwiseCopyable2(PrintOptions &options,
31433143
llvm::function_ref<void()> action) {
3144-
unsigned originalExcludeAttrCount = options.ExcludeAttrList.size();
31453144
llvm::SaveAndRestore<bool> scope(options.SuppressBitwiseCopyable, true);
31463145
action();
3147-
options.ExcludeAttrList.resize(originalExcludeAttrCount);
31483146
}
31493147

31503148
static void

0 commit comments

Comments
 (0)