Skip to content

Commit 28e0010

Browse files
committed
[AST] Fix setting of DWARFMangling in ASTMangler
Turns out this constructor was never actually setting this bit. `mangleTypeForDebugger` also sets this to `true`, so it doesn't seem like this caused issues in practice, but let's actually set it. This parameter seems like it could be removed at this point, but I'll leave that for a follow-up.
1 parent 401eafa commit 28e0010

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/ASTMangler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ class ASTMangler : public Mangler {
187187
HasSymbolQuery,
188188
};
189189

190-
/// lldb overrides the defaulted argument to 'true'.
190+
/// lldb overrides \p DWARFMangling to 'true'.
191191
ASTMangler(const ASTContext &Ctx, bool DWARFMangling = false) : Context(Ctx) {
192192
if (DWARFMangling) {
193-
DWARFMangling = true;
193+
this->DWARFMangling = true;
194194
RespectOriginallyDefinedIn = false;
195195
}
196196
Flavor = Ctx.LangOpts.hasFeature(Feature::Embedded)

0 commit comments

Comments
 (0)