Initialize the variable to a valid value.
Review URL: http://codereview.chromium.org/7826 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@541 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
42ef2c3d77
commit
df3aea2cc0
@ -683,7 +683,7 @@ Handle<JSFunction> Factory::CreateApiFunction(
|
||||
}
|
||||
|
||||
int instance_size = kPointerSize * internal_field_count;
|
||||
InstanceType type;
|
||||
InstanceType type = JS_OBJECT_TYPE; // initialize to a valid value
|
||||
switch (instance_type) {
|
||||
case JavaScriptObject:
|
||||
type = JS_OBJECT_TYPE;
|
||||
|
Loading…
Reference in New Issue
Block a user