projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bcc2393
)
Do not pass a copy of the value map, pass a reference to it.
author
Duncan Sands
<baldrick@free.fr>
Fri, 30 Jul 2010 05:50:45 +0000
(
05:50
+0000)
committer
Duncan Sands
<baldrick@free.fr>
Fri, 30 Jul 2010 05:50:45 +0000
(
05:50
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109852
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/ExtractFunction.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/ExtractFunction.cpp
b/tools/bugpoint/ExtractFunction.cpp
index c03d86ca1fe85f3a8af903710b719e1a2a895a6c..e0f9db6d438bdb3c10f940e652c91cf65eceeb9d 100644
(file)
--- a/
tools/bugpoint/ExtractFunction.cpp
+++ b/
tools/bugpoint/ExtractFunction.cpp
@@
-199,7
+199,7
@@
static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
/// static ctors/dtors, we need to add an llvm.global_[cd]tors global to M2, and
/// prune appropriate entries out of M1s list.
static void SplitStaticCtorDtor(const char *GlobalName, Module *M1, Module *M2,
- ValueMap<const Value*, Value*> VMap) {
+ ValueMap<const Value*, Value*>
&
VMap) {
GlobalVariable *GV = M1->getNamedGlobal(GlobalName);
if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() ||
!GV->use_empty()) return;