diff options
author | Eric Christopher <echristo@apple.com> | 2009-07-25 02:28:41 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-07-25 02:28:41 +0000 |
commit | a3500da5592aee83675d6714d4f1e9d5ad96d1f2 (patch) | |
tree | bb33a6d5043231c6eab6910c6e750218bb23b89a /lib/AsmParser/LLParser.cpp | |
parent | 4df605ba4617f3666aeaa2f101fc2e082b57117b (diff) |
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 'lib/AsmParser/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 10d9470d40..60fc8ade7a 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -3103,7 +3103,7 @@ bool LLParser::ParseExtractElement(Instruction *&Inst, PerFunctionState &PFS) { if (!ExtractElementInst::isValidOperands(Op0, Op1)) return Error(Loc, "invalid extractelement operands"); - Inst = new ExtractElementInst(Op0, Op1); + Inst = ExtractElementInst::Create(Op0, Op1); return false; } |