Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 629:607b6b5819a7

Show
Ignore:
Timestamp:
10/01/08 14:55:13 (3 months ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
Children:

631:9fcb5f1a4c54 632:df196c8dea26

branch:
default
Message:

Fixed issue with IsExpression? and potential type mismatch for classes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gen/llvm.h

    r445 r629  
    1717#include "llvm/Support/IRBuilder.h" 
    1818using llvm::IRBuilder; 
     19 
     20// for WriteTypeSymbolic 
     21#include "llvm/Assembly/Writer.h" 
    1922 
    2023#define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X )) 
  • gen/toir.cpp

    r628 r629  
    19551955        :   p->ir->CreateFCmpONE(l,r,"tmp"); 
    19561956    } 
    1957     else if (t1->ty == Tpointer
     1957    else if (t1->ty == Tpointer || t1->ty == Tclass
    19581958    { 
    19591959        if (l->getType() != r->getType()) { 
     
    19681968    } 
    19691969    else { 
     1970        assert(l->getType() == r->getType()); 
    19701971        eval = (op == TOKidentity) 
    19711972        ?   p->ir->CreateICmpEQ(l,r,"tmp") 
Copyright © 2008, LDC Development Team.