mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
[fast-isel] Make sure the FastLowerArguments function checks to make sure the
arguments type is a simple type. rdar://13290455 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2922,6 +2922,7 @@ bool ARMFastISel::FastLowerArguments() {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
EVT ArgVT = TLI.getValueType(ArgTy);
|
EVT ArgVT = TLI.getValueType(ArgTy);
|
||||||
|
if (!ArgVT.isSimple()) return false;
|
||||||
switch (ArgVT.getSimpleVT().SimpleTy) {
|
switch (ArgVT.getSimpleVT().SimpleTy) {
|
||||||
case MVT::i8:
|
case MVT::i8:
|
||||||
case MVT::i16:
|
case MVT::i16:
|
||||||
|
@ -1555,6 +1555,7 @@ bool X86FastISel::FastLowerArguments() {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
EVT ArgVT = TLI.getValueType(ArgTy);
|
EVT ArgVT = TLI.getValueType(ArgTy);
|
||||||
|
if (!ArgVT.isSimple()) return false;
|
||||||
switch (ArgVT.getSimpleVT().SimpleTy) {
|
switch (ArgVT.getSimpleVT().SimpleTy) {
|
||||||
case MVT::i32:
|
case MVT::i32:
|
||||||
case MVT::i64:
|
case MVT::i64:
|
||||||
|
Reference in New Issue
Block a user