[llvm-commits] [llvm] r105513 - /llvm/trunk/tools/bugpoint/CrashDebugger.cpp
Dan Gohman
gohman at apple.com
Fri Jun 4 17:42:29 PDT 2010
Author: djg
Date: Fri Jun 4 19:42:29 2010
New Revision: 105513
URL: http://llvm.org/viewvc/llvm-project?rev=105513&view=rev
Log:
No need to special-case structs here; structs are first-class now.
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=105513&r1=105512&r2=105513&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/CrashDebugger.cpp (original)
+++ llvm/trunk/tools/bugpoint/CrashDebugger.cpp Fri Jun 4 19:42:29 2010
@@ -298,9 +298,7 @@
TerminatorInst *BBTerm = BB->getTerminator();
- if (BBTerm->getType()->isStructTy())
- BBTerm->replaceAllUsesWith(UndefValue::get(BBTerm->getType()));
- else if (BB->getTerminator()->getType() !=
+ if (BB->getTerminator()->getType() !=
Type::getVoidTy(BB->getContext()))
BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType()));
More information about the llvm-commits
mailing list