diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-05 13:47:21 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-05 13:47:21 +0000 |
commit | dde0fee82eb80f3b1388e7e7e19c7a83396e6c27 (patch) | |
tree | 9cd98c528375a1b792bab34f74dad84053655244 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e7178953f9fa1307dd42fde8b8ae78f14f0a02d9 (diff) | |
download | bcm5719-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.cpp | 2 |
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()); |