projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use ExtractElementInst::Create instead of new; patch by Artur Pietrek!
[oota-llvm.git]
/
include
/
llvm
/
Support
/
NoFolder.h
diff --git
a/include/llvm/Support/NoFolder.h
b/include/llvm/Support/NoFolder.h
index 1f671c19250d2e640f4d8a8b279c851e194ec0f3..7f2f1497f39f6d8bbcb64fbaf38ffa081dcd222b 100644
(file)
--- 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,