[llvm] [DWARF] Emit 0/1 for constant boolean values (PR #151225)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 07:13:34 PDT 2025
================
@@ -820,6 +833,22 @@ void DwarfCompileUnit::applyConcreteDbgVariableAttributes(
}
if (!DVal->isVariadic()) {
const DbgValueLocEntry *Entry = DVal->getLocEntries().begin();
+
+ // Helper function to handle boolean constant values with type safety
+ auto addConstantValueWithBooleanNormalization =
----------------
Michael137 wrote:
Have you considered putting this boolean normalization into `addConstantValue`? Some of them don't take a `Type`, so might not be as simple as I imagine?
https://github.com/llvm/llvm-project/pull/151225
More information about the llvm-commits
mailing list