[PATCH] D130546: [BOLT][TEST] Update fptr.test
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 21:36:16 PDT 2022
Amir created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: maksfb.
Herald added a project: All.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
The test exercises an implicit ptr-to-int conversion which is made an error in
D129881 <https://reviews.llvm.org/D129881>. We acknowledge the error but still want to test this case.
Add `-Wno-int-conversion` to silence the error.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130546
Files:
bolt/test/runtime/fptr.test
Index: bolt/test/runtime/fptr.test
===================================================================
--- bolt/test/runtime/fptr.test
+++ bolt/test/runtime/fptr.test
@@ -1,6 +1,6 @@
# Make sure BOLT correctly updates values based on function pointer.
-RUN: %clang %cflags -no-pie %p/Inputs/fptr.c -Wl,-q -o %t.exe
+RUN: %clang %cflags -Wno-int-conversion -no-pie %p/Inputs/fptr.c -Wl,-q -o %t.exe
RUN: llvm-bolt %t.exe -o %t --lite=0
RUN: %t | FileCheck %s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130546.447557.patch
Type: text/x-patch
Size: 465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220726/275b9878/attachment.bin>
More information about the llvm-commits
mailing list