summaryrefslogtreecommitdiff
path: root/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-07 20:19:26 +0000
committerDan Gohman <gohman@apple.com>2010-06-07 20:19:26 +0000
commite49a13e7260b83ce56d01446f2a165cc9f35da7f (patch)
tree17afcfebf08d9afcff91f7b9100d07f302bdb1e9 /tools/bugpoint/Miscompilation.cpp
parentfd447eff22637c3d47ce709468ab50b6243d0e4c (diff)
downloadllvm-e49a13e7260b83ce56d01446f2a165cc9f35da7f.tar.gz
llvm-e49a13e7260b83ce56d01446f2a165cc9f35da7f.tar.bz2
llvm-e49a13e7260b83ce56d01446f2a165cc9f35da7f.tar.xz
Use ->isVoidTy().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r--tools/bugpoint/Miscompilation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 71484a2507..7094390464 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -848,7 +848,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
Args.push_back(i);
// Pass on the arguments to the real function, return its result
- if (F->getReturnType() == Type::getVoidTy(F->getContext())) {
+ if (F->getReturnType()->isVoidTy()) {
CallInst::Create(FuncPtr, Args.begin(), Args.end(), "", DoCallBB);
ReturnInst::Create(F->getContext(), DoCallBB);
} else {