[llvm-commits] [llvm] r89606 - /llvm/trunk/include/llvm/Support/NoFolder.h
Daniel Dunbar
daniel at zuster.org
Sun Nov 22 10:27:44 PST 2009
Author: ddunbar
Date: Sun Nov 22 12:27:43 2009
New Revision: 89606
URL: http://llvm.org/viewvc/llvm-project?rev=89606&view=rev
Log:
Use ExtractElementInst::Create instead of new; patch by Artur Pietrek!
Modified:
llvm/trunk/include/llvm/Support/NoFolder.h
Modified: llvm/trunk/include/llvm/Support/NoFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/NoFolder.h?rev=89606&r1=89605&r2=89606&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/NoFolder.h (original)
+++ llvm/trunk/include/llvm/Support/NoFolder.h Sun Nov 22 12:27:43 2009
@@ -174,7 +174,7 @@
}
Value *CreateExtractElement(Constant *Vec, Constant *Idx) const {
- return new ExtractElementInst(Vec, Idx);
+ return ExtractElementInst::Create(Vec, Idx);
}
Value *CreateInsertElement(Constant *Vec, Constant *NewElt,
More information about the llvm-commits
mailing list