[clang] [clang] Store FPOptions earlier when parsing function (PR #92146)
Stephen Tozer via cfe-commits
cfe-commits at lists.llvm.org
Wed May 15 02:00:05 PDT 2024
================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -emit-pch -DHEADER -x c++-header %s -o %t.pch
+// RUN: %clang_cc1 -emit-llvm -include-pch %t.pch %s -o /dev/null
+
+#ifdef HEADER
+__attribute__((optnone)) void foo() {}
+#endif
----------------
SLTozer wrote:
Ah, that makes sense since you're using a single file as the source and header - as does the resulting error. New test LGTM.
https://github.com/llvm/llvm-project/pull/92146
More information about the cfe-commits
mailing list