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:
4c8f9af
)
Fix the crash debugger to actually bisect globals once it's determined that it
author
Nick Lewycky
<nicholas@mxc.ca>
Mon, 25 May 2009 06:29:56 +0000
(06:29 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Mon, 25 May 2009 06:29:56 +0000
(06:29 +0000)
can't just eliminate all global initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72378
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/CrashDebugger.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/CrashDebugger.cpp
b/tools/bugpoint/CrashDebugger.cpp
index f369d4e5184dfd951e3943719f2c0f8acae9b73f..7daf57c91589f824fc374d83da681ff4abbb979f 100644
(file)
--- a/
tools/bugpoint/CrashDebugger.cpp
+++ b/
tools/bugpoint/CrashDebugger.cpp
@@
-150,7
+150,7
@@
ReduceCrashingGlobalVariables::TestGlobalVariables(
// playing with...
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
I != E; ++I)
- if (I->hasInitializer()) {
+ if (I->hasInitializer()
&& !GVSet.count(I)
) {
I->setInitializer(0);
I->setLinkage(GlobalValue::ExternalLinkage);
}