diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-12-12 06:55:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-12-12 06:55:44 +0000 |
| commit | 85b25bc34461552733a03c1c31ad7a922ca56878 (patch) | |
| tree | c6b494830c31d42541289778e7e2336b5b2eecc3 /clang/docs/InternalsManual.html | |
| parent | 10da53c60c3ca7c6d976048c854d27ece193ed89 (diff) | |
| download | bcm5719-llvm-85b25bc34461552733a03c1c31ad7a922ca56878.tar.gz bcm5719-llvm-85b25bc34461552733a03c1c31ad7a922ca56878.zip | |
implement rdar://6091492 - ?: with __builtin_constant_p as the operand is an i-c-e.
llvm-svn: 60934
Diffstat (limited to 'clang/docs/InternalsManual.html')
| -rw-r--r-- | clang/docs/InternalsManual.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/docs/InternalsManual.html b/clang/docs/InternalsManual.html index 9e8a21e708e..5d32d8df6d7 100644 --- a/clang/docs/InternalsManual.html +++ b/clang/docs/InternalsManual.html @@ -1152,7 +1152,10 @@ interacts with constant evaluation:</p> any evaluatable subexpression to be accepted as an integer constant expression.</li> <li><b><tt>__builtin_constant_p</tt></b>: This returns true (as a integer - constant expression) if the operand is any evaluatable constant.</li> + constant expression) if the operand is any evaluatable constant. As a + special case, if <tt>__builtin_constant_p</tt> is the (potentially + parenthesized) condition of a conditional operator expression ("?:"), only + the true side of the conditional operator is considered.</li> <li><b><tt>__builtin_choose_expr</tt></b>: The condition is required to be an integer constant expression, but we accept any constant as an "extension of an extension". This only evaluates one operand depending on which way the |

