aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/InstrTypes.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/VMCore/InstrTypes.cpp b/lib/VMCore/InstrTypes.cpp
index dbace177a9..9e49805d31 100644
--- a/lib/VMCore/InstrTypes.cpp
+++ b/lib/VMCore/InstrTypes.cpp
@@ -15,10 +15,15 @@
// TerminatorInst Class
//===----------------------------------------------------------------------===//
-TerminatorInst::TerminatorInst(unsigned iType)
+TerminatorInst::TerminatorInst(Instruction::TermOps iType)
: Instruction(Type::VoidTy, iType, "") {
}
+TerminatorInst::TerminatorInst(const Type *Ty, Instruction::TermOps iType,
+ const string &Name = "")
+ : Instruction(Ty, iType, Name) {
+}
+
//===----------------------------------------------------------------------===//
// MethodArgument Class