aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/LLParser.cpp
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 /lib/AsmParser/LLParser.cpp
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 'lib/AsmParser/LLParser.cpp')
-rw-r--r--lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 10d9470..60fc8ad 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;
}