From 4e52d78767d70ccd7e13a90126deab07054bf3c6 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Tue, 3 Feb 2015 01:35:39 +0000 Subject: [PATCH] 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 --- compiler-rt/lib/builtins/clear_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 6b8adcd..61b1e9b 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -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; -- 2.7.4