Skip to content

Commit d0e1646

Browse files
committed
Add LLVM_ATTRIBUTE_RETURNS_NONNULL to APSIntPtr::get()
1 parent 587368a commit d0e1646

File tree

1 file changed

+2
-0
lines changed
  • clang/include/clang/StaticAnalyzer/Core/PathSensitive

1 file changed

+2
-0
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntPtr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_APSIntPtr_H
1111

1212
#include "llvm/ADT/APSInt.h"
13+
#include "llvm/Support/Compiler.h"
1314

1415
namespace clang::ento {
1516

@@ -31,6 +32,7 @@ class APSIntPtr {
3132
return APSIntPtr(Ptr);
3233
}
3334

35+
LLVM_ATTRIBUTE_RETURNS_NONNULL
3436
const APSInt *get() const { return Ptr; }
3537
/*implicit*/ operator const APSInt &() const { return *get(); }
3638

0 commit comments

Comments
 (0)