Commit 25ba6bd
committed
[clang][Sema] Optimize ~SemaDiagnosticBuilder
Call getDiagnosticLevel(), which is expensive, only if ShowCallStack is
set.
Small gains:
https://llvm-compile-time-tracker.com/compare.php?from=843e362318e884991e517a54446b4faeacdad789&to=5cef0c18466318a426924b3c45f7abaaa8f6b535&stat=instructions:u1 parent 843e362 commit 25ba6bd
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
2065 | | - | |
2066 | | - | |
2067 | 2065 | | |
2068 | | - | |
2069 | | - | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
2070 | 2073 | | |
2071 | 2074 | | |
2072 | 2075 | | |
| |||
0 commit comments