From c6876fe1212154b7f21ab8b95473883d7f5a42a6 Mon Sep 17 00:00:00 2001
From: Douglas Gregor
Date: Sat, 11 Sep 2010 18:08:34 +0000
Subject: [PATCH] Document our extension to constant-fold __builtin_strlen and
strlen
llvm-svn: 113699
---
clang/docs/InternalsManual.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/docs/InternalsManual.html b/clang/docs/InternalsManual.html
index 6df26db8cfeb..2eee5c2507cf 100644
--- a/clang/docs/InternalsManual.html
+++ b/clang/docs/InternalsManual.html
@@ -1682,6 +1682,7 @@ interacts with constant evaluation:
floating-point literal.
__builtin_abs,copysign,..: These are constant folded as
general constant expressions.
+__builtin_strlen and strlen: These are constant folded as integer constant expressions if the argument is a string literal.