Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Commit dbb6fdf

Browse files
committed
[arm] Handle CallingConv::Mono in getEffectiveCallingConv (), previously it would be handled by the default branch, which would fall through to the next switch case because llvm_unreachable() was a noop in release builds.
1 parent 5b94bc7 commit dbb6fdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,8 @@ ARMTargetLowering::getEffectiveCallingConv(CallingConv::ID CC,
12951295
return CallingConv::ARM_AAPCS_VFP;
12961296
else
12971297
return CallingConv::ARM_AAPCS;
1298+
case CallingConv::Mono:
1299+
return CallingConv::Mono;
12981300
}
12991301
}
13001302

0 commit comments

Comments
 (0)