SuccessChanges

Summary

  1. Don't add optnone or noinline if the function is already marked as (details)
Commit 4516dc1c20d1e77f20a72e90be876506805b3978 by Akira
Don't add optnone or noinline if the function is already marked as
always_inline.
The assertion in SetLLVMFunctionAttributesForDefinition used to fail
when there was attribute OptimizeNone on the AST function and attribute
always_inline on the IR function. This happens because base destructors
are annotated with always_inline when the code is compiled with
-fapple-kext (see r124757).
rdar://problem/57169694
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/test/CodeGenCXX/apple-kext.cpp