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:
Chris Lattner
2008-03-30 18:22:13 +00:00
parent f19f58a936
commit d27c991ceb
11 changed files with 19 additions and 0 deletions

View File

@@ -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