diff --git a/examples/ExceptionDemo/ExceptionDemo.cpp b/examples/ExceptionDemo/ExceptionDemo.cpp index 276c30df2a3..215cb4d3714 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