summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-10-05 13:47:21 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-10-05 13:47:21 +0000
commitdde0fee82eb80f3b1388e7e7e19c7a83396e6c27 (patch)
tree9cd98c528375a1b792bab34f74dad84053655244 /clang/lib/CodeGen/CodeGenModule.cpp
parente7178953f9fa1307dd42fde8b8ae78f14f0a02d9 (diff)
downloadbcm5719-llvm-dde0fee82eb80f3b1388e7e7e19c7a83396e6c27.tar.gz
bcm5719-llvm-dde0fee82eb80f3b1388e7e7e19c7a83396e6c27.zip
Use new predicates for some type equality tests.
llvm-svn: 83303
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index f93c6048a74..fdc97409eb4 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1088,7 +1088,7 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
llvm::CallInst *NewCall = llvm::CallInst::Create(NewFn, ArgList.begin(),
ArgList.end(), "", CI);
ArgList.clear();
- if (NewCall->getType() != llvm::Type::getVoidTy(Old->getContext()))
+ if (!NewCall->getType()->isVoidTy())
NewCall->takeName(CI);
NewCall->setAttributes(CI->getAttributes());
NewCall->setCallingConv(CI->getCallingConv());
OpenPOWER on IntegriCloud