Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 1088:a08983bf972e
Move "invalid intrinsic name" error to declaration, not instantiation.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Tue, 10 Mar 2009 11:30:51 +0100 |
parents | 4e388d9d0e25 |
children | f99a3b393c03 |
comparison
equal
deleted
inserted
replaced
1082:146d8dfa0043 | 1088:a08983bf972e |
---|---|
1539 // Wrong type character. | 1539 // Wrong type character. |
1540 ti->error("has invalid parameter type for intrinsic %s: %s is not a%s type", | 1540 ti->error("has invalid parameter type for intrinsic %s: %s is not a%s type", |
1541 name.c_str(), T->toChars(), | 1541 name.c_str(), T->toChars(), |
1542 (name[pos-1] == 'i' ? "n integral" : " floating-point")); | 1542 (name[pos-1] == 'i' ? "n integral" : " floating-point")); |
1543 } else { | 1543 } else { |
1544 // Just plain wrong. | 1544 // Just plain wrong. (Error in declaration, not instantiation) |
1545 ti->error("has an invalid intrinsic name: %s", name.c_str()); | 1545 td->error("has an invalid intrinsic name: %s", name.c_str()); |
1546 } | 1546 } |
1547 fatal(); // or LLVM asserts | 1547 fatal(); // or LLVM asserts |
1548 } | 1548 } |
1549 } | 1549 } |
1550 | 1550 |