Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23b0338e authored by Alexander Potapenko's avatar Alexander Potapenko Committed by Alistair Delva
Browse files

ANDROID: test_stackinit: work around LLVM PR44916

Temporarily move the local outside of switch statement to work around
https://bugs.llvm.org/show_bug.cgi?id=44916 and unbreak the
ClangBuiltLinux project Travis build.

This patch has been tested according to the instructions at
https://github.com/ClangBuiltLinux/continuous-integration



Bug: 149581678
Test: ./driver.sh REPO=android-4.14
Change-Id: Iea85ee09d8f0e6d698b5f23a02fe23a6002ad5e7
Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
parent 4c08606a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -282,9 +282,10 @@ DEFINE_TEST(user, struct test_user, STRUCT, none);
 */
static int noinline __leaf_switch_none(int path, bool fill)
{
	switch (path) {
	uint64_t var;

	switch (path) {

	case 1:
		target_start = &var;
		target_size = sizeof(var);