projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d56b9f
)
No need to special-case structs here; structs are first-class now.
author
Dan Gohman
<gohman@apple.com>
Sat, 5 Jun 2010 00:42:29 +0000
(
00:42
+0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 5 Jun 2010 00:42:29 +0000
(
00:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105513
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 46b33d2a7268b752afb2e665007d8a68ae7fef07..9c9dddedceb8ec2cd98ded662876312a70304f8d 100644
(file)
--- a/
tools/bugpoint/CrashDebugger.cpp
+++ b/
tools/bugpoint/CrashDebugger.cpp
@@
-298,9
+298,7
@@
bool ReduceCrashingBlocks::TestBlocks(std::vector<const BasicBlock*> &BBs) {
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()));