summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0f760dfe09fd25006c5d3c795c21332112758a92 (patch)
tree8258243691ab670abe99b15596c764f18aff4607 /llvm/lib/Target/MSIL/MSILWriter.cpp
parent519a51a76f1dcda9c3eb0e974567925f455f2013 (diff)
downloadbcm5719-llvm-0f760dfe09fd25006c5d3c795c21332112758a92.tar.gz
bcm5719-llvm-0f760dfe09fd25006c5d3c795c21332112758a92.zip
Fix "Control reaches the end of non-void function" warnings,
patch by David Chisnall. llvm-svn: 48963
Diffstat (limited to 'llvm/lib/Target/MSIL/MSILWriter.cpp')
-rw-r--r--llvm/lib/Target/MSIL/MSILWriter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp
index f0a66848afe..187dd4a8af4 100644
--- a/llvm/lib/Target/MSIL/MSILWriter.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud