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
This commit is contained in:
Duncan Sands 2008-08-09 15:14:59 +00:00
parent 1c5afa3767
commit 1d85163ec2

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