[compiler-rt] r266892 - builtins: fix -Werror, -Wunused-variable warning
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 10:43:43 PDT 2016
Author: compnerd
Date: Wed Apr 20 12:43:43 2016
New Revision: 266892
URL: http://llvm.org/viewvc/llvm-project?rev=266892&view=rev
Log:
builtins: fix -Werror,-Wunused-variable warning
This removes the unused variable `flags`. NFC
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=266892&r1=266891&r2=266892&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Wed Apr 20 12:43:43 2016
@@ -110,7 +110,6 @@ void __clear_cache(void *start, void *en
#elif defined(__linux__)
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;
__asm __volatile("svc 0x0"
: "=r"(start_reg)
More information about the llvm-commits
mailing list