Unbreak the llvm-gcc build: recent changes to

IRBuilder are not expecting null names.

llvm-svn: 54581
This commit is contained in:
Duncan Sands 2008-08-09 15:14:59 +00:00
parent 15817f1acc
commit 310343bae7

View File

@ -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) {