summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-19 03:25:36 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-19 03:25:36 +0000
commitca63811b396757f97c84a7965eba6a4a8c26417e (patch)
treed9bd6845bb908704cd84aacb5512bc0ef65e8286 /clang/lib/CodeGen/CodeGenModule.cpp
parent2dd5aa4f1177b4b4c99dc20d630033082ac471aa (diff)
downloadbcm5719-llvm-ca63811b396757f97c84a7965eba6a4a8c26417e.tar.gz
bcm5719-llvm-ca63811b396757f97c84a7965eba6a4a8c26417e.zip
Built-in equality and relational operators have return type "bool" in C++,
not "int". Fix a typo in the promotion of enumeration types that was causing some integral promotions to look like integral conversions (leading to extra ambiguities in overload resolution). Check for "acceptable" overloaded operators based on the types of the arguments. This is a somewhat odd check that is specified by the standard, but I can't see why it actually matters: the overload candidates it suppresses don't seem like they would ever be picked as the best candidates. llvm-svn: 59583
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud