Merge pull request #8479 from geoffw0/widecharperf

C++: Fix expensive getWideCharType().
This commit is contained in:
Mathias Vorreiter Pedersen
2022-03-23 14:22:17 +00:00
committed by GitHub

View File

@@ -92,6 +92,7 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
* snapshots there may be multiple results where we can't tell which is correct for a
* particular function.
*/
pragma[nomagic]
Type getWideCharType() {
result = getFormatCharType() and
result.getSize() > 1