summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit34a2249fde1ba2b48921079e39e82461ede25106 (patch)
tree8e3b6bf479ac10b55388a74faa042525b773ffec /llvm/tools/bugpoint/Miscompilation.cpp
parenta2d7c34e93ad7e33af3e9a9052b7530f697fbc67 (diff)
downloadbcm5719-llvm-34a2249fde1ba2b48921079e39e82461ede25106.tar.gz
bcm5719-llvm-34a2249fde1ba2b48921079e39e82461ede25106.zip
Use ->isVoidTy().
llvm-svn: 105550
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index 71484a25074..7094390464d 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud