aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-07-25 02:28:41 +0000
committerEric Christopher <echristo@apple.com>2009-07-25 02:28:41 +0000
commit1ba3687e0e8526294fec1bcacade62e64b08422d (patch)
treebb33a6d5043231c6eab6910c6e750218bb23b89a /include/llvm/Support/IRBuilder.h
parent4736084a1238fea35e620bcccecd5f8e181d5423 (diff)
downloadexternal_llvm-1ba3687e0e8526294fec1bcacade62e64b08422d.zip
external_llvm-1ba3687e0e8526294fec1bcacade62e64b08422d.tar.gz
external_llvm-1ba3687e0e8526294fec1bcacade62e64b08422d.tar.bz2
Move ExtractElementInst to ::Create instead of new. Update all uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index ac134ec..d22bc3d 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -641,7 +641,7 @@ public:
if (Constant *VC = dyn_cast<Constant>(Vec))
if (Constant *IC = dyn_cast<Constant>(Idx))
return Folder.CreateExtractElement(VC, IC);
- return Insert(new ExtractElementInst(Vec, Idx), Name);
+ return Insert(ExtractElementInst::Create(Vec, Idx), Name);
}
Value *CreateInsertElement(Value *Vec, Value *NewElt, Value *Idx,