diff options
| author | John McCall <rjmccall@apple.com> | 2010-12-21 00:44:39 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-12-21 00:44:39 +0000 |
| commit | 991eb4b3191ae24f2fbcad6b8856fd6f42fc89bc (patch) | |
| tree | 0b3d47abfb2c96729327887d5a83d91742d0448b /clang/lib/Sema/SemaDecl.cpp | |
| parent | 7d6e11a1923ab5d3b90afcdde042767159d984cb (diff) | |
| download | bcm5719-llvm-991eb4b3191ae24f2fbcad6b8856fd6f42fc89bc.tar.gz bcm5719-llvm-991eb4b3191ae24f2fbcad6b8856fd6f42fc89bc.zip | |
Fix the noreturn conversion to only strip off a single level of indirection.
Apply the noreturn attribute while creating a builtin function's type.
Remove the getNoReturnType() API.
llvm-svn: 122295
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 665689ef269..ad0c077aad4 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -5594,8 +5594,6 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) { FD->addAttr(::new (Context) ConstAttr(FD->getLocation(), Context)); } - if (Context.BuiltinInfo.isNoReturn(BuiltinID)) - FD->setType(Context.getNoReturnType(FD->getType())); if (Context.BuiltinInfo.isNoThrow(BuiltinID)) FD->addAttr(::new (Context) NoThrowAttr(FD->getLocation(), Context)); if (Context.BuiltinInfo.isConst(BuiltinID)) |

