diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-06-19 23:23:19 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-06-19 23:23:19 +0000 |
commit | 19cee1871e3986c79a4408813f029121e896f11c (patch) | |
tree | 48872934782f50a816db5a8af57dd8e002bce9ef /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 11b3ba71760f219d92606f9b514c3869f7825a61 (diff) | |
download | bcm5719-llvm-19cee1871e3986c79a4408813f029121e896f11c.tar.gz bcm5719-llvm-19cee1871e3986c79a4408813f029121e896f11c.zip |
Revert r184205 and associated patches while investigating issue with broken buildbot (possible interaction with LTO)
<rdar://problem/14209661>
llvm-svn: 184384
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 3298d5a0899..efff4b118d5 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -722,14 +722,6 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, if (!IsIncompleteFunction) SetLLVMFunctionAttributes(FD, getTypes().arrangeGlobalDeclaration(GD), F); - if (getCXXABI().HasThisReturn(GD)) { - assert(!F->arg_empty() && - F->arg_begin()->getType() - ->canLosslesslyBitCastTo(F->getReturnType()) && - "unexpected this return"); - F->addAttribute(1, llvm::Attribute::Returned); - } - // Only a few attributes are set on declarations; these may later be // overridden by a definition. |