From: Duncan Sands Date: Sat, 9 Aug 2008 15:14:59 +0000 (+0000) Subject: Unbreak the llvm-gcc build: recent changes to X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1d85163ec22e4413abc79ddd5d57e184095eaca0;p=oota-llvm.git Unbreak the llvm-gcc build: recent changes to IRBuilder are not expecting null names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54581 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 96b1850564b..f0a138c2f57 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -282,10 +282,10 @@ public: FreeInst *CreateFree(Value *Ptr) { return Insert(new FreeInst(Ptr)); } - LoadInst *CreateLoad(Value *Ptr, const char *Name = 0) { + LoadInst *CreateLoad(Value *Ptr, const char *Name = "") { return Insert(new LoadInst(Ptr), Name); } - LoadInst *CreateLoad(Value *Ptr, bool isVolatile, const char *Name = 0) { + LoadInst *CreateLoad(Value *Ptr, bool isVolatile, const char *Name = "") { return Insert(new LoadInst(Ptr, 0, isVolatile), Name); } StoreInst *CreateStore(Value *Val, Value *Ptr, bool isVolatile = false) {