aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/objc/objc-act.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/objc/objc-act.c')
-rw-r--r--gcc-4.6/gcc/objc/objc-act.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc-4.6/gcc/objc/objc-act.c b/gcc-4.6/gcc/objc/objc-act.c
index 4511435..cca60a0 100644
--- a/gcc-4.6/gcc/objc/objc-act.c
+++ b/gcc-4.6/gcc/objc/objc-act.c
@@ -3136,9 +3136,8 @@ objc_build_string_object (tree string)
struct string_descriptor *desc, key;
void **loc;
- /* Prep the string argument. */
- string = fix_string_type (string);
- TREE_SET_CODE (string, STRING_CST);
+ /* We should be passed a STRING_CST. */
+ gcc_checking_assert (TREE_CODE (string) == STRING_CST);
length = TREE_STRING_LENGTH (string) - 1;
/* The target may have different ideas on how to construct an ObjC string