mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Fix assertion failure when calling or returning from a function which
returns 'bool' type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85c08351ce
commit
299b39d356
@ -798,7 +798,7 @@ void V8ISel::visitCallInst(CallInst &I) {
|
||||
if (I.getType () == Type::VoidTy)
|
||||
return;
|
||||
unsigned DestReg = getReg (I);
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
case cShort:
|
||||
case cInt:
|
||||
@ -823,7 +823,7 @@ void V8ISel::visitCallInst(CallInst &I) {
|
||||
void V8ISel::visitReturnInst(ReturnInst &I) {
|
||||
if (I.getNumOperands () == 1) {
|
||||
unsigned RetValReg = getReg (I.getOperand (0));
|
||||
switch (getClass (I.getOperand (0)->getType ())) {
|
||||
switch (getClassB (I.getOperand (0)->getType ())) {
|
||||
case cByte:
|
||||
case cShort:
|
||||
case cInt:
|
||||
|
@ -798,7 +798,7 @@ void V8ISel::visitCallInst(CallInst &I) {
|
||||
if (I.getType () == Type::VoidTy)
|
||||
return;
|
||||
unsigned DestReg = getReg (I);
|
||||
switch (getClass (I.getType ())) {
|
||||
switch (getClassB (I.getType ())) {
|
||||
case cByte:
|
||||
case cShort:
|
||||
case cInt:
|
||||
@ -823,7 +823,7 @@ void V8ISel::visitCallInst(CallInst &I) {
|
||||
void V8ISel::visitReturnInst(ReturnInst &I) {
|
||||
if (I.getNumOperands () == 1) {
|
||||
unsigned RetValReg = getReg (I.getOperand (0));
|
||||
switch (getClass (I.getOperand (0)->getType ())) {
|
||||
switch (getClassB (I.getOperand (0)->getType ())) {
|
||||
case cByte:
|
||||
case cShort:
|
||||
case cInt:
|
||||
|
Loading…
Reference in New Issue
Block a user