about summary refs log tree commit diff homepage
path: root/test/regression/2016-11-24-bitcast-weak-alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/2016-11-24-bitcast-weak-alias.c')
-rw-r--r--test/regression/2016-11-24-bitcast-weak-alias.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/regression/2016-11-24-bitcast-weak-alias.c b/test/regression/2016-11-24-bitcast-weak-alias.c
index 3e4ebe64..d35f6fa7 100644
--- a/test/regression/2016-11-24-bitcast-weak-alias.c
+++ b/test/regression/2016-11-24-bitcast-weak-alias.c
@@ -26,18 +26,11 @@ int alias_function(struct v1 *, struct v1 *, int)
 
 int main(int argc, char** argv) {
   struct v2 local = { .e= 0, .f=0 };
-  int choice = (argc == 1);
   int number = 0;
 
-  // FIXME: Drop the guard when llvm 2.9 is dropped.
-  // Prevent actually making the call at runtime due to llvm-gcc
-  // injecting an abort if the call is made. The call is guarded
-  // in such a way that the compiler cannot remove the call.
-  if (choice) {
-    // Call via a bitcasted alias.
-    number = ((int (*)(struct v2 *, struct v2 *, int))alias_function)(
-        &local, &local, 0);
-  }
+  // Call via a bitcasted alias.
+  number = ((int (*)(struct v2 *, struct v2 *, int))alias_function)(&local,
+                                                                    &local, 0);
   return number % 255;
 }