Changeset 10662 for src/Pugs/CodeGen
- Timestamp:
- 06/12/06 16:23:53 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/CodeGen/PIR.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/CodeGen/PIR.hs
r10059 r10662 65 65 trans PNoop = return (StmtComment "") 66 66 trans (PStmt (PLit (PVal VUndef))) = return $ StmtComment "" 67 trans (PStmt (PLit (PVal VType{}))) = return $ StmtComment "" 67 68 trans (PStmt exp) = do 68 69 expC <- trans exp … … 79 80 trans (PExp exp) = fmap ExpLV $ trans exp 80 81 trans (PLit (PVal VUndef)) = do 82 pmc <- genScalar "undef" 83 return $ ExpLV pmc 84 trans (PLit (PVal VType{})) = do 81 85 pmc <- genScalar "undef" 82 86 return $ ExpLV pmc
