File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -3197,20 +3197,16 @@ void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) {
3197
3197
// "notcoldandcold" implies there are multiple contexts which reach this site,
3198
3198
// some of which are cold and some of which are not, and that need to
3199
3199
// disambiguate via cloning or other context identification.
3200
- auto AllocTypeName = [](uint8_t Type) {
3200
+ auto AllocTypeName = [](uint8_t Type) -> const char * {
3201
3201
switch (Type) {
3202
3202
case (uint8_t )AllocationType::None:
3203
3203
return " none" ;
3204
- break ;
3205
3204
case (uint8_t )AllocationType::NotCold:
3206
3205
return " notcold" ;
3207
- break ;
3208
3206
case (uint8_t )AllocationType::Cold:
3209
3207
return " cold" ;
3210
- break ;
3211
3208
case (uint8_t )AllocationType::NotCold | (uint8_t )AllocationType::Cold:
3212
3209
return " notcoldandcold" ;
3213
- break ;
3214
3210
}
3215
3211
llvm_unreachable (" Unexpected alloc type" );
3216
3212
};
You can’t perform that action at this time.
0 commit comments