mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[pr19635] Revert most of r170537, and add new testcase.
Patch provided by Andrey Kuharev. Sorry, r170537 was obviously wrong. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2329,9 +2329,9 @@ public:
|
||||
/// all the time, e.g. i1 on x86-64. It is also not necessary for non-C
|
||||
/// calling conventions. The frontend should handle this and include all of
|
||||
/// the necessary information.
|
||||
virtual MVT getTypeForExtArgOrReturn(MVT VT,
|
||||
virtual EVT getTypeForExtArgOrReturn(LLVMContext &Context, EVT VT,
|
||||
ISD::NodeType /*ExtendKind*/) const {
|
||||
MVT MinVT = getRegisterType(MVT::i32);
|
||||
EVT MinVT = getRegisterType(Context, MVT::i32);
|
||||
return VT.bitsLT(MinVT) ? MinVT : VT;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user