From 1d85163ec22e4413abc79ddd5d57e184095eaca0 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 9 Aug 2008 15:14:59 +0000 Subject: [PATCH] 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 --- include/llvm/Support/IRBuilder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {