Add a not in isUserDefined.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Wed, 19 Aug 2009 15:34:23 +0000 (17:34 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Wed, 19 Aug 2009 15:35:01 +0000 (17:35 +0200)
The meaning of isUserDefined was accidentally reversed.

cλash/CLasH/Normalize/NormalizeTools.hs

index 37614984229b9d3fe2dce0105a28eea004319653..c9e2f804f55508fd7bbec7c1e624e89ac419bd00 100644 (file)
@@ -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