diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-30 18:22:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-30 18:22:13 +0000 |
commit | 2b06cd3076bbc4547d58109722c79b33366d594d (patch) | |
tree | 540c5d6ba547c04eee48f2e86ce4f39ffd0c26ed /include | |
parent | 6192ce0a0e5880e48729f9a70a71db52e329b231 (diff) | |
download | external_llvm-2b06cd3076bbc4547d58109722c79b33366d594d.zip external_llvm-2b06cd3076bbc4547d58109722c79b33366d594d.tar.gz external_llvm-2b06cd3076bbc4547d58109722c79b33366d594d.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/SparseBitVector.h | 1 | ||||
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h index 4d37eae..1ed2860 100644 --- a/include/llvm/ADT/SparseBitVector.h +++ b/include/llvm/ADT/SparseBitVector.h @@ -166,6 +166,7 @@ public: assert(0 && "Unsupported!"); } assert(0 && "Illegal empty element"); + return 0; // Not reached } /// find_next - Returns the index of the next set bit starting from the diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 3d65a53..05e2c85 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -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 |