diff options
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 1b573700da..38d9cf31d0 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -222,7 +222,11 @@ public: llvm::BasicBlock *createBasicBlock(const char *Name="", llvm::Function *Parent=0, llvm::BasicBlock *InsertBefore=0) { +#ifdef NDEBUG + return llvm::BasicBlock::Create("", Parent, InsertBefore); +#else return llvm::BasicBlock::Create(Name, Parent, InsertBefore); +#endif } /// getBasicBlockForLabel - Return the LLVM basicblock that the specified |