diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-05-25 06:29:56 +0000 | 
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-05-25 06:29:56 +0000 | 
| commit | 4099c7c229404c5821815e3ddf0d276956a06a48 (patch) | |
| tree | 3edd490ec1b4beea54da0e17c9a5bcd4eee20774 /llvm/tools/bugpoint/CrashDebugger.cpp | |
| parent | 6e090c9117f19cda9618045e47f9cb24ccc1c461 (diff) | |
| download | bcm5719-llvm-4099c7c229404c5821815e3ddf0d276956a06a48.tar.gz bcm5719-llvm-4099c7c229404c5821815e3ddf0d276956a06a48.zip | |
Fix the crash debugger to actually bisect globals once it's determined that it
can't just eliminate all global initializers.
llvm-svn: 72378
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index f369d4e5184..7daf57c9158 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/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);      } | 

