From 4c856ee1f8672de5da97d73c05687420eb0049e2 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 12 Oct 2012 14:11:48 +0000 Subject: 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 --- examples/ExceptionDemo/ExceptionDemo.cpp | 4 ++-- 1 file 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 -- cgit v1.2.3-18-g5258