Return null on failure, instead of aborting.
[oota-llvm.git] / lib / VMCore / InstrTypes.cpp
index 6fb18693fe2a3dd3327dd6f6333257f4bd29caf7..954719aa95070aae6b73a402213c899122b10670 100644 (file)
@@ -6,7 +6,6 @@
 
 #include "llvm/iOther.h"
 #include "llvm/iPHINode.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/Function.h"
 #include "llvm/SymbolTable.h"
 #include "llvm/Type.h"
@@ -21,7 +20,7 @@ TerminatorInst::TerminatorInst(Instruction::TermOps iType)
 }
 
 TerminatorInst::TerminatorInst(const Type *Ty, Instruction::TermOps iType,
-                              const std::string &Name = "")
+                              const std::string &Name)
   : Instruction(Ty, iType, Name) {
 }