[lli] Reference global @C in global-variable-alignment testcase.
authorLang Hames <lhames@gmail.com>
Tue, 16 May 2023 23:11:49 +0000 (16:11 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 16 May 2023 23:14:01 +0000 (16:14 -0700)
We want to reference both byte-sized globals (@A and @C) to prevent them from
being dead-stripped.

llvm/test/ExecutionEngine/Orc/global-variable-alignment.ll

index eb5bdac..329c8db 100644 (file)
@@ -20,7 +20,7 @@ entry:
   %2 = load i8, i8* @A
   %3 = zext i8 %2 to i32
   %4 = add i32 %1, %3
-  %5 = load i8, i8* @B
+  %5 = load i8, i8* @C
   %6 = zext i8 %5 to i32
   %7 = sub i32 %4, %6
   ret i32 %7