diff options
author | Steve Naroff <snaroff@apple.com> | 2007-08-27 15:30:22 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-08-27 15:30:22 +0000 |
commit | 7af82d462ac2d1960a6e24fb6e6f4297c9e06820 (patch) | |
tree | 93a2521d00e673c650ddb7954980e116e072be30 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 032d89828e148b846e90e5ba498779adf26d8958 (diff) | |
download | bcm5719-llvm-7af82d462ac2d1960a6e24fb6e6f4297c9e06820.tar.gz bcm5719-llvm-7af82d462ac2d1960a6e24fb6e6f4297c9e06820.zip |
Replaced ASTContext::maxFloatingType() with ASTContext::compareFloatingType().
Changed Sema::UsualArithmeticConversions to use the new API.
This fixes the following case...
_Complex double X;
double y;
void foo() {
X = X + y;
}
[dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang complex.c -parse-ast-dump
Read top-level variable decl: 'X'
Read top-level variable decl: 'y'
void foo()
(CompoundStmt 0x2605cc0
(BinaryOperator 0x2605ca0 '_Complex double' '='
(DeclRefExpr 0x2605c10 '_Complex double' Decl='X' 0x2605ab0)
(BinaryOperator 0x2605c80 '_Complex double' '+'
(DeclRefExpr 0x2605c30 '_Complex double' Decl='X' 0x2605ab0)
(ImplicitCastExpr 0x2605c70 '_Complex double'
(DeclRefExpr 0x2605c50 'double' Decl='y' 0x2605ae0)))))
llvm-svn: 41483
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions