forked from OSchip/llvm-project
Remove invalid const qualifier for r0, since it is written by svc.
Summary: This causes an invalid lvalue error when building for Android. Reviewers: danalbert Reviewed By: danalbert Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7306 llvm-svn: 227907
This commit is contained in:
parent
9c3a07984f
commit
4e52d78767
|
@ -97,7 +97,7 @@ void __clear_cache(void *start, void *end) {
|
|||
|
||||
sysarch(ARM_SYNC_ICACHE, &arg);
|
||||
#elif defined(__ANDROID__)
|
||||
const register int start_reg __asm("r0") = (int) (intptr_t) start;
|
||||
register int start_reg __asm("r0") = (int) (intptr_t) start;
|
||||
const register int end_reg __asm("r1") = (int) (intptr_t) end;
|
||||
const register int flags __asm("r2") = 0;
|
||||
const register int syscall_nr __asm("r7") = __ARM_NR_cacheflush;
|
||||
|
|
Loading…
Reference in New Issue