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

Chris Lattner clattner at apple.com
Fri Jun 4 21:13:21 PDT 2010


On Jun 4, 2010, at 5:42 PM, Dan Gohman wrote:

> 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.

Please use !x->isVoidTy() 

-Chris

> 
> 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()));
> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list