[all-commits] [llvm/llvm-project] 23c10e: [clang] Eliminate TypeProcessingState::trivial.
martinboehme via All-commits
all-commits at lists.llvm.org
Fri Apr 29 06:34:46 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23c10e8d0f97dc38c9f620541c7f3ffd04bef905
https://github.com/llvm/llvm-project/commit/23c10e8d0f97dc38c9f620541c7f3ffd04bef905
Author: Martin Boehme <mboehme at google.com>
Date: 2022-04-29 (Fri, 29 Apr 2022)
Changed paths:
M clang/lib/Sema/SemaType.cpp
Log Message:
-----------
[clang] Eliminate TypeProcessingState::trivial.
This flag is redundant -- it's true iff `savedAttrs` is empty.
Querying `savedAttrs.empty()` should not take any more time than querying the
`trivial` flag, so this should not have a performance impact either.
I noticed this while working on https://reviews.llvm.org/D111548.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D123783
More information about the All-commits
mailing list