-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cudaMemset call after cudaMalloc for derivative pointers #1129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -1766,6 +1766,22 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, | |||
.ActOnCallExpr(getCurrentScope(), Clone(CE->getCallee()), Loc, | |||
llvm::MutableArrayRef<Expr*>(DerivedCallArgs), Loc) | |||
.get(); | |||
if (FD->getNameAsString() == "cudaMalloc") { | |||
if (auto addrOp = dyn_cast<UnaryOperator>(DerivedCallArgs[0])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'auto addrOp' can be declared as 'auto *addrOp' [llvm-qualified-auto]
if (auto addrOp = dyn_cast<UnaryOperator>(DerivedCallArgs[0])) { | |
if (auto *addrOp = dyn_cast<UnaryOperator>(DerivedCallArgs[0])) { |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1129 +/- ##
=======================================
Coverage 94.44% 94.45%
=======================================
Files 50 50
Lines 8770 8781 +11
=======================================
+ Hits 8283 8294 +11
Misses 487 487
|
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.