Changeset 10662 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
06/12/06 16:23:53 (2 years ago)
Author:
audreyt
Message:

* -CPIR: catch up the VType change by treating it as VUndef (for now)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/PIR.hs

    r10059 r10662  
    6565    trans PNoop = return (StmtComment "") 
    6666    trans (PStmt (PLit (PVal VUndef))) = return $ StmtComment "" 
     67    trans (PStmt (PLit (PVal VType{}))) = return $ StmtComment "" 
    6768    trans (PStmt exp) = do 
    6869        expC    <- trans exp 
     
    7980    trans (PExp exp) = fmap ExpLV $ trans exp 
    8081    trans (PLit (PVal VUndef)) = do 
     82        pmc     <- genScalar "undef" 
     83        return $ ExpLV pmc 
     84    trans (PLit (PVal VType{})) = do 
    8185        pmc     <- genScalar "undef" 
    8286        return $ ExpLV pmc