...instead of just comparing rank. Also, fix a bad warning about _Float16, since its declared out of order in BuiltinTypes.def, meaning comparing rank using BuiltinType::getKind() is incorrect.
Came out of some discussion on D58145
Thanks!
Paths
| Differential D58254
[Sema] Diagnose floating point conversions based on target semantics ClosedPublic Authored by erik.pilkington on Feb 14 2019, 2:43 PM.
Details Summary ...instead of just comparing rank. Also, fix a bad warning about _Float16, since its declared out of order in BuiltinTypes.def, meaning comparing rank using BuiltinType::getKind() is incorrect. Came out of some discussion on D58145 Thanks!
Diff Detail
Event TimelineHerald added subscribers: jdoerfert, dexonsmith, jkorous. · View Herald TranscriptFeb 14 2019, 2:43 PM This revision is now accepted and ready to land.Feb 14 2019, 6:42 PM Closed by commit rC354190: [Sema] Diagnose floating point conversions based on target semantics (authored by epilk). · Explain WhyFeb 15 2019, 5:11 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 187119 include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp
lib/Sema/SemaChecking.cpp
test/Sema/conversion-target-dep.c
|