Changeset 629:607b6b5819a7
- Timestamp:
- 10/01/08 14:55:13
(2 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
| r445 |
r629 |
|
| 17 | 17 | #include "llvm/Support/IRBuilder.h" |
|---|
| 18 | 18 | using llvm::IRBuilder; |
|---|
| | 19 | |
|---|
| | 20 | // for WriteTypeSymbolic |
|---|
| | 21 | #include "llvm/Assembly/Writer.h" |
|---|
| 19 | 22 | |
|---|
| 20 | 23 | #define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X )) |
|---|
| r628 |
r629 |
|
| 1955 | 1955 | : p->ir->CreateFCmpONE(l,r,"tmp"); |
|---|
| 1956 | 1956 | } |
|---|
| 1957 | | else if (t1->ty == Tpointer) |
|---|
| | 1957 | else if (t1->ty == Tpointer || t1->ty == Tclass) |
|---|
| 1958 | 1958 | { |
|---|
| 1959 | 1959 | if (l->getType() != r->getType()) { |
|---|
| … | … | |
| 1968 | 1968 | } |
|---|
| 1969 | 1969 | else { |
|---|
| | 1970 | assert(l->getType() == r->getType()); |
|---|
| 1970 | 1971 | eval = (op == TOKidentity) |
|---|
| 1971 | 1972 | ? p->ir->CreateICmpEQ(l,r,"tmp") |
|---|