X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=c%CE%BBash%2FCLasH%2FNormalize%2FNormalizeTools.hs;h=c9e2f804f55508fd7bbec7c1e624e89ac419bd00;hb=21d23c869733745ec2d0533772e881d88c682261;hp=37614984229b9d3fe2dce0105a28eea004319653;hpb=8963597a9ec246d8bac113c0ffc05b8192572ed2;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git "a/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" "b/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" index 3761498..c9e2f80 100644 --- "a/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" +++ "b/c\316\273ash/CLasH/Normalize/NormalizeTools.hs" @@ -201,7 +201,7 @@ isUserDefined :: CoreSyn.CoreBndr -> Bool -- System names are certain to not be user defined isUserDefined bndr | Name.isSystemName (Id.idName bndr) = False -- Check a list of typical compiler-defined names -isUserDefined bndr = str `elem` compiler_names +isUserDefined bndr = not $ str `elem` compiler_names where str = Name.getOccString bndr -- These are names of bindings usually generated by the compiler. For some