mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
In this unreachable code, return an initialized value.
This stops gcc warning about possible uses of an uninitialized value when compiling with assertions turned off. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d44d4bf04b
commit
98749f851d
@ -256,7 +256,7 @@ public:
|
||||
return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT(); // Not reached
|
||||
return MVT(MVT::Other); // Not reached
|
||||
}
|
||||
|
||||
/// getTypeToExpandTo - For types supported by the target, this is an
|
||||
@ -557,7 +557,7 @@ public:
|
||||
return getRegisterType(getTypeToTransformTo(VT));
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT(); // Not reached
|
||||
return MVT(MVT::Other); // Not reached
|
||||
}
|
||||
|
||||
/// getNumRegisters - Return the number of registers that this ValueType will
|
||||
|
Loading…
x
Reference in New Issue
Block a user