Index: lib/Transforms/Instrumentation/AddressSanitizer.cpp =================================================================== --- lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -162,7 +162,7 @@ static cl::opt ClStack("asan-stack", cl::desc("Handle stack memory"), cl::Hidden, cl::init(true)); static cl::opt ClUseAfterReturn("asan-use-after-return", - cl::desc("Check return-after-free"), + cl::desc("Check stack-use-after-return"), cl::Hidden, cl::init(true)); // This flag may need to be replaced with -f[no]asan-globals. static cl::opt ClGlobals("asan-globals", @@ -1304,7 +1304,7 @@ if (TargetTriple.isMacOSX() && !TargetTriple.isMacOSXVersionLT(10, 11)) return true; if (TargetTriple.isiOS() /* or tvOS */ && !TargetTriple.isOSVersionLT(9)) - return true; + return true; if (TargetTriple.isWatchOS() && !TargetTriple.isOSVersionLT(2)) return true; @@ -1337,7 +1337,7 @@ M.getOrInsertFunction(kAsanRegisterImageGlobalsName, IRB.getVoidTy(), IntptrTy, nullptr)); AsanRegisterImageGlobals->setLinkage(Function::ExternalLinkage); - + AsanUnregisterImageGlobals = checkSanitizerInterfaceFunction( M.getOrInsertFunction(kAsanUnregisterImageGlobalsName, IRB.getVoidTy(), IntptrTy, nullptr));