Skip to content

Commit ec8fe7a

Browse files
[LTO] Use enum class for ImportFailureReason (NFC) (#105564)
It turns out that all uses of the enum values here are already qualified like FunctionImporter::ImportFailureReason::None, so we can switch to enum class without touching the rest of the codebase.
1 parent c557d85 commit ec8fe7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Transforms/IPO/FunctionImport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class FunctionImporter {
4242

4343
/// The different reasons selectCallee will chose not to import a
4444
/// candidate.
45-
enum ImportFailureReason {
45+
enum class ImportFailureReason {
4646
None,
4747
// We can encounter a global variable instead of a function in rare
4848
// situations with SamplePGO. See comments where this failure type is

0 commit comments

Comments
 (0)