diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-22 18:27:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-22 18:27:43 +0000 |
commit | 5a325e3663c0af8b0c7d644dfb56a5bed1f11bbc (patch) | |
tree | 5fee54c83d832c3ce7d972b5c029c28336a3d09f /include | |
parent | 6c7276f17eca3dcbceed46dc70a833153cfc581f (diff) | |
download | external_llvm-5a325e3663c0af8b0c7d644dfb56a5bed1f11bbc.zip external_llvm-5a325e3663c0af8b0c7d644dfb56a5bed1f11bbc.tar.gz external_llvm-5a325e3663c0af8b0c7d644dfb56a5bed1f11bbc.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/NoFolder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/NoFolder.h b/include/llvm/Support/NoFolder.h index 1f671c1..7f2f149 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, |