aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MSIL/MSILWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-30 18:22:13 +0000
committerChris Lattner <sabre@nondot.org>2008-03-30 18:22:13 +0000
commitd27c991cebe48fdf82b5d9eec6c2a1a244f82622 (patch)
tree540c5d6ba547c04eee48f2e86ce4f39ffd0c26ed /lib/Target/MSIL/MSILWriter.cpp
parentf19f58a9360927f8ef50b9a029e8efb780d3d8a8 (diff)
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 'lib/Target/MSIL/MSILWriter.cpp')
-rw-r--r--lib/Target/MSIL/MSILWriter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/MSIL/MSILWriter.cpp b/lib/Target/MSIL/MSILWriter.cpp
index f0a66848af..187dd4a8af 100644
--- a/lib/Target/MSIL/MSILWriter.cpp
+++ b/lib/Target/MSIL/MSILWriter.cpp
@@ -259,6 +259,7 @@ std::string MSILWriter::getConvModopt(unsigned CallingConvID) {
cerr << "CallingConvID = " << CallingConvID << '\n';
assert(0 && "Unsupported calling convention");
}
+ return ""; // Not reached
}
@@ -304,6 +305,7 @@ std::string MSILWriter::getPrimitiveTypeName(const Type* Ty, bool isSigned) {
cerr << "Type = " << *Ty << '\n';
assert(0 && "Invalid primitive type");
}
+ return ""; // Not reached
}
@@ -331,6 +333,7 @@ std::string MSILWriter::getTypeName(const Type* Ty, bool isSigned,
cerr << "Type = " << *Ty << '\n';
assert(0 && "Invalid type in getTypeName()");
}
+ return ""; // Not reached
}
@@ -374,6 +377,7 @@ std::string MSILWriter::getTypePostfix(const Type* Ty, bool Expand,
cerr << "TypeID = " << Ty->getTypeID() << '\n';
assert(0 && "Invalid type in TypeToPostfix()");
}
+ return ""; // Not reached
}
@@ -1446,6 +1450,7 @@ unsigned int MSILWriter::getBitWidth(const Type* Ty) {
cerr << "Bits = " << N << '\n';
assert(0 && "Unsupported integer width");
}
+ return 0; // Not reached
}