Skip to content
Commit a65e1f3b authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 45b985c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment