mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Silence more static analyzer warnings.
Add in definedness checks for shift operators, null checks when pointers are assumed by the code to be non-null, and explicit unreachables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -47,6 +47,7 @@ void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
|
||||
}
|
||||
|
||||
// Does this MF have different CSRs?
|
||||
assert(TRI && "no register info set");
|
||||
const MCPhysReg *CSR = TRI->getCalleeSavedRegs(MF);
|
||||
if (Update || CSR != CalleeSaved) {
|
||||
// Build a CSRNum map. Every CSR alias gets an entry pointing to the last
|
||||
@@ -76,6 +77,7 @@ void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
|
||||
/// registers filtered out. Volatile registers come first followed by CSR
|
||||
/// aliases ordered according to the CSR order specified by the target.
|
||||
void RegisterClassInfo::compute(const TargetRegisterClass *RC) const {
|
||||
assert(RC && "no register class given");
|
||||
RCInfo &RCI = RegClass[RC->getID()];
|
||||
|
||||
// Raw register count, including all reserved regs.
|
||||
|
Reference in New Issue
Block a user