mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Fix "Control reaches the end of non-void function" warnings,
patch by David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,6 +210,7 @@ public:
|
||||
return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT::ValueType(); // Not reached
|
||||
}
|
||||
|
||||
/// getTypeToExpandTo - For types supported by the target, this is an
|
||||
@@ -440,6 +441,7 @@ public:
|
||||
return getRegisterType(getTypeToTransformTo(VT));
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return MVT::ValueType(); // Not reached
|
||||
}
|
||||
|
||||
/// getNumRegisters - Return the number of registers that this ValueType will
|
||||
@@ -464,6 +466,7 @@ public:
|
||||
return (BitWidth + RegWidth - 1) / RegWidth;
|
||||
}
|
||||
assert(0 && "Unsupported extended type!");
|
||||
return 0; // Not reached
|
||||
}
|
||||
|
||||
/// ShouldShrinkFPConstant - If true, then instruction selection should
|
||||
|
Reference in New Issue
Block a user