diff options
Diffstat (limited to 'gcc/d/dmd/dsymbol.d')
-rw-r--r-- | gcc/d/dmd/dsymbol.d | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/d/dmd/dsymbol.d b/gcc/d/dmd/dsymbol.d index f8ada2b..9e50bd5 100644 --- a/gcc/d/dmd/dsymbol.d +++ b/gcc/d/dmd/dsymbol.d @@ -465,10 +465,7 @@ extern (C++) class Dsymbol : ASTNode final bool isCsymbol() { if (Module m = getModule()) - { - if (m.isCFile) - return true; - } + return m.filetype == FileType.c; return false; } @@ -975,7 +972,7 @@ extern (C++) class Dsymbol : ASTNode * Returns: * SIZE_INVALID when the size cannot be determined */ - d_uns64 size(const ref Loc loc) + uinteger_t size(const ref Loc loc) { error("Dsymbol `%s` has no size", toChars()); return SIZE_INVALID; |