Don't require nonstandard __builtin_unreachable() in UNREACHABLE().

Fix #304 (I hope).
This commit is contained in:
Bob Nystrom
2015-10-16 21:51:30 -07:00
parent 29eebe4928
commit 49601e67c5
7 changed files with 12 additions and 3 deletions

View File

@ -632,7 +632,9 @@ static inline ObjFn* wrenGetFrameFunction(CallFrame* frame)
{
case OBJ_FN: return (ObjFn*)frame->fn;
case OBJ_CLOSURE: return ((ObjClosure*)frame->fn)->fn;
default: UNREACHABLE();
default:
UNREACHABLE();
return NULL;
}
}