summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-06-19 06:58:20 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-06-19 06:58:20 +0000
commit9157b55c3c825a38c3efb4a6e8dc19756af658b7 (patch)
tree19680c00da6412bb9ee5e327f6494bc0d388fbd1 /clang/lib/CodeGen/CodeGenModule.cpp
parentdc2e2fb9cef72e74346111633dade73854be3576 (diff)
downloadbcm5719-llvm-9157b55c3c825a38c3efb4a6e8dc19756af658b7.tar.gz
bcm5719-llvm-9157b55c3c825a38c3efb4a6e8dc19756af658b7.zip
Fix a warning. [-Wunused-variable]
llvm-svn: 184284
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 18c56b0dae2..3298d5a0899 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -723,9 +723,9 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD,
SetLLVMFunctionAttributes(FD, getTypes().arrangeGlobalDeclaration(GD), F);
if (getCXXABI().HasThisReturn(GD)) {
- llvm::Type *RetTy = F->getReturnType();
assert(!F->arg_empty() &&
- F->arg_begin()->getType()->canLosslesslyBitCastTo(RetTy) &&
+ F->arg_begin()->getType()
+ ->canLosslesslyBitCastTo(F->getReturnType()) &&
"unexpected this return");
F->addAttribute(1, llvm::Attribute::Returned);
}
OpenPOWER on IntegriCloud