diff options
author | Reid Kleckner <rnk@google.com> | 2019-12-09 16:11:56 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-12-09 16:17:18 -0800 |
commit | 9803178a78c1858b0ac868c2cdf402cec5a10db9 (patch) | |
tree | 1e6406871a61926a4e46e39639e2d97b2e2caa2d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7c69a03c56601a55f47f29ea59e33c37e62db556 (diff) | |
download | bcm5719-llvm-9803178a78c1858b0ac868c2cdf402cec5a10db9.tar.gz bcm5719-llvm-9803178a78c1858b0ac868c2cdf402cec5a10db9.zip |
Avoid Attr.h includes, CodeGen edition
This saves around 20 includes of Attr.h. Not much.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 1439d92f0c4..a46a25248bd 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -75,6 +75,7 @@ class ObjCAtTryStmt; class ObjCAtThrowStmt; class ObjCAtSynchronizedStmt; class ObjCAutoreleasePoolStmt; +class ReturnsNonNullAttr; namespace analyze_os_log { class OSLogBufferLayout; @@ -1597,11 +1598,7 @@ private: Address ReturnLocation = Address::invalid(); /// Check if the return value of this function requires sanitization. - bool requiresReturnValueCheck() const { - return requiresReturnValueNullabilityCheck() || - (SanOpts.has(SanitizerKind::ReturnsNonnullAttribute) && - CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>()); - } + bool requiresReturnValueCheck() const; llvm::BasicBlock *TerminateLandingPad = nullptr; llvm::BasicBlock *TerminateHandler = nullptr; |