Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC] [clang] Use std::string instead of StringRef to reduce stack usage
Comparisons between StringRef and string literals are lowered by MSVC to happen on the stack. All string literals are allocated unique stack slots increasing the overall stack usage of calculateAttributeSpellingListIndex. Use of std::string forces allocation of a string type per literal, reducing the overall stack usage of the function. Change-Id: I7ac39fc96ab2e559318413fa26ef304c3fb0bd6e
- Loading branch information