summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-09-18 21:37:37 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-09-18 21:37:37 +0000
commit08d2fa0a782163cba3078b3a873b477a9ecbb3f8 (patch)
tree7dba70e594ab6992b906d0be14b24c1638262eb3 /clang/lib/CodeGen/CodeGenModule.cpp
parent0a0f599f2c9a89d2f60b6b16c2845a819b241214 (diff)
downloadbcm5719-llvm-08d2fa0a782163cba3078b3a873b477a9ecbb3f8.tar.gz
bcm5719-llvm-08d2fa0a782163cba3078b3a873b477a9ecbb3f8.zip
In Microsoft mode(-fms-compatibility), prefer an integral conversion to a floating-to-integral conversion if the integral conversion is between types of the same size.
For example: void f(float); void f(int); int main { long a; f(a); } Here, MSVC will call f(int) instead of generating a compile error as clang will do in standard mode. This fixes a few errors when parsing MFC code with clang. llvm-svn: 140007
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud