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

fix rdar://9289603 - clang should fold trivial ?: for enums as well as integer...

fix rdar://9289603 - clang should fold trivial ?: for enums as well as integer constants into select at -O0
by making the isCheapEnoughToEvaluateUnconditionally predicate handle anything that folds to a constant.  In particular, we now fold enums.

llvm-svn: 129649
parent d6d4f987
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