aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-16 19:17:22 +0000
committerChris Lattner <sabre@nondot.org>2008-01-16 19:17:22 +0000
commita65e1f3b317643fa24a9d73a2d879244effc26e7 (patch)
treea2ec92b739b2ff1c6ead7028b3b602047c759222 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent45b985c664ac7cee9dc13c72f5fdebe999e978a0 (diff)
downloadllvm-a65e1f3b317643fa24a9d73a2d879244effc26e7.zip
llvm-a65e1f3b317643fa24a9d73a2d879244effc26e7.tar.gz
llvm-a65e1f3b317643fa24a9d73a2d879244effc26e7.tar.bz2
Move promoteExprToType from being a static method in SemaExpr.cpp to being
a method named ImpCastExprToType in Sema. Use this method to insert implicit casts for case statements from their operand type to the condition type of the switch. This fixes a crash on test/CodeGen/statements.c, reported by Eli Friedman. llvm-svn: 46083
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions