From: Daniel Dunbar Date: Sun, 22 Nov 2009 18:27:43 +0000 (+0000) Subject: Use ExtractElementInst::Create instead of new; patch by Artur Pietrek! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a325e3663c0af8b0c7d644dfb56a5bed1f11bbc;p=oota-llvm.git Use ExtractElementInst::Create instead of new; patch by Artur Pietrek! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/NoFolder.h b/include/llvm/Support/NoFolder.h index 1f671c19250..7f2f1497f39 100644 --- a/include/llvm/Support/NoFolder.h +++ b/include/llvm/Support/NoFolder.h @@ -174,7 +174,7 @@ public: } Value *CreateExtractElement(Constant *Vec, Constant *Idx) const { - return new ExtractElementInst(Vec, Idx); + return ExtractElementInst::Create(Vec, Idx); } Value *CreateInsertElement(Constant *Vec, Constant *NewElt,