Skip to content

Commit e53494c

Browse files
committed
[mlir] Fix 0 values passed to the wrong parameters.
This was found by modernize-use-nullptr ClangTidy check, which suggested to pass nullptr instead of 0 to DIFileAttr. However it looks like the intention was to pass the two 0 values for line and scopeLine, and we should pass {} to DIFileAttr. Do that change.
1 parent d598829 commit e53494c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ DIRecursiveTypeAttrInterface DISubprogramAttr::withRecId(DistinctAttr recId) {
233233

234234
DIRecursiveTypeAttrInterface DISubprogramAttr::getRecSelf(DistinctAttr recId) {
235235
return DISubprogramAttr::get(recId.getContext(), recId, /*isRecSelf=*/true,
236-
{}, {}, {}, {}, {}, 0, 0, {}, {}, {}, {}, {});
236+
{}, {}, {}, {}, {}, {}, 0, 0, {}, {}, {}, {});
237237
}
238238

239239
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)