Skip to content

Commit c3a1bbb

Browse files
authored
Merge pull request #1321 from yashssh/yashwants/fix-OptimizationLevel-mapping
Fix OptimizationLevel mapping for Os
2 parents 52a272c + cdd2016 commit c3a1bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffi/newpassmanagers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static OptimizationLevel mapLevel(int speed_level, int size_level) {
277277
llvm_unreachable("Invalid optimization level");
278278
}
279279
case 1:
280-
if (speed_level == 1)
280+
if (speed_level == 2)
281281
return OptimizationLevel::Os;
282282
llvm_unreachable("Invalid optimization level for size level 1");
283283
case 2:

0 commit comments

Comments
 (0)