diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-12 14:11:48 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-12 14:11:48 +0000 |
commit | 4c856ee1f8672de5da97d73c05687420eb0049e2 (patch) | |
tree | 9b4fdef50ce3b4ef7aaf17deb98a32328c0e1bbc /examples | |
parent | 9f469a0ca36a6b07c863bffa52357f3db3afcec8 (diff) |
ExceptionDemo.cpp: Use Function::setDoesNotReturn(). Attributes stuff was updated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ExceptionDemo/ExceptionDemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ExceptionDemo/ExceptionDemo.cpp b/examples/ExceptionDemo/ExceptionDemo.cpp index 276c30df2a..215cb4d371 100644 --- a/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/examples/ExceptionDemo/ExceptionDemo.cpp @@ -1846,7 +1846,7 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos, true, false); - funct->addFnAttr(llvm::Attribute::NoReturn); + funct->setDoesNotReturn(); // _Unwind_Resume @@ -1866,7 +1866,7 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos, true, false); - funct->addFnAttr(llvm::Attribute::NoReturn); + funct->setDoesNotReturn(); // ourPersonality |