[Mlir-commits] [mlir] [MLIR][DebugInfo] Enable the use of DILocalVariable DIFlags (PR #100190)
Krzysztof Drewniak
llvmlistbot at llvm.org
Tue Jul 23 13:30:42 PDT 2024
================
@@ -228,8 +228,8 @@ DebugTranslation::translateImpl(DILocalVariableAttr attr) {
return llvm::DILocalVariable::get(
llvmCtx, translate(attr.getScope()), getMDStringOrNull(attr.getName()),
translate(attr.getFile()), attr.getLine(), translate(attr.getType()),
- attr.getArg(),
- /*Flags=*/llvm::DINode::FlagZero, attr.getAlignInBits(),
+ attr.getArg(), (llvm::DINode::DIFlags)attr.getFlags(),
----------------
krzysz00 wrote:
`static_cast`, maybe?
https://github.com/llvm/llvm-project/pull/100190
More information about the Mlir-commits
mailing list