[llvm-commits] [llvm] r72378 - /llvm/trunk/tools/bugpoint/CrashDebugger.cpp

Nick Lewycky nicholas at mxc.ca
Sun May 24 23:29:57 PDT 2009


Author: nicholas
Date: Mon May 25 01:29:56 2009
New Revision: 72378

URL: http://llvm.org/viewvc/llvm-project?rev=72378&view=rev
Log:
Fix the crash debugger to actually bisect globals once it's determined that it
can't just eliminate all global initializers.

Modified:
    llvm/trunk/tools/bugpoint/CrashDebugger.cpp

Modified: llvm/trunk/tools/bugpoint/CrashDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/CrashDebugger.cpp?rev=72378&r1=72377&r2=72378&view=diff

==============================================================================
--- llvm/trunk/tools/bugpoint/CrashDebugger.cpp (original)
+++ llvm/trunk/tools/bugpoint/CrashDebugger.cpp Mon May 25 01:29:56 2009
@@ -150,7 +150,7 @@
   // 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);
     }





More information about the llvm-commits mailing list