Skip to content

Commit fee107d

Browse files
Update clang/lib/Basic/ProfileList.cpp
Update the label to match the expected enum type and resolve the compiler warning about comparing different enumeration types. Co-authored-by: Tarun Prabhu <[email protected]>
1 parent fda0864 commit fee107d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/ProfileList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static StringRef getSectionName(llvm::driver::ProfileInstrKind Kind) {
7979
return "llvm";
8080
case llvm::driver::ProfileInstrKind::ProfileCSIRInstr:
8181
return "csllvm";
82-
case CodeGenOptions::ProfileIRSampleColdCov:
82+
case llvm::driver::ProfileInstrKind::ProfileIRSampleColdCov:
8383
return "sample-coldcov";
8484
}
8585
llvm_unreachable("Unhandled llvm::driver::ProfileInstrKind enum");

0 commit comments

Comments
 (0)