mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-01 04:23:14 +01:00
Cleanup: Clang warning fixes.
No warnings left on a '-Wall' build except for a single tautological compare in gen/asm-x86-32.h, which indeed seems like a bug.
This commit is contained in:
@@ -178,10 +178,12 @@ Statement *AsmStatement::semantic(Scope *sc)
|
||||
return this;
|
||||
|
||||
if (!asmparser)
|
||||
{
|
||||
if (global.params.cpu == ARCHx86)
|
||||
asmparser = new AsmParserx8632::AsmParser;
|
||||
else if (global.params.cpu == ARCHx86_64)
|
||||
asmparser = new AsmParserx8664::AsmParser;
|
||||
}
|
||||
|
||||
asmparser->run(sc, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user