summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-08-12 17:25:45 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-08-12 17:25:45 +0000
commit45fc2a6a9b9e587b9a8fb4ad0e6444a315d47ab0 (patch)
treedb466c6f5a514982e63ecb896999953d1d85bf71 /llvm/tools/bugpoint/Miscompilation.cpp
parent62da15a330f5a16f026de81924a08cb4cc472b44 (diff)
downloadbcm5719-llvm-45fc2a6a9b9e587b9a8fb4ad0e6444a315d47ab0.tar.gz
bcm5719-llvm-45fc2a6a9b9e587b9a8fb4ad0e6444a315d47ab0.zip
Fix bugpoint fallout from the new type system.
llvm-svn: 137467
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index f0ba24014cd..422ab62d820 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -411,8 +411,6 @@ static bool ExtractLoops(BugDriver &BD,
Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
assert(NewF && "Function not found??");
- assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
- "found wrong function type?");
MiscompiledFunctions.push_back(NewF);
}
@@ -593,8 +591,6 @@ static bool ExtractBlocks(BugDriver &BD,
for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first);
assert(NewF && "Function not found??");
- assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
- "Function has wrong type??");
MiscompiledFunctions.push_back(NewF);
}
OpenPOWER on IntegriCloud