[clang] a6abbe0 - [test] Remove `-emit-llvm` from the `and-errors.hlsl` test to avoid writing to a potentially write-protected directory (#128047)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 09:30:28 PST 2025
Author: Deric Cheung
Date: 2025-02-24T11:30:24-06:00
New Revision: a6abbe03094a7afc85d4d35c24e6cedd1cfc4ef2
URL: https://github.com/llvm/llvm-project/commit/a6abbe03094a7afc85d4d35c24e6cedd1cfc4ef2
DIFF: https://github.com/llvm/llvm-project/commit/a6abbe03094a7afc85d4d35c24e6cedd1cfc4ef2.diff
LOG: [test] Remove `-emit-llvm` from the `and-errors.hlsl` test to avoid writing to a potentially write-protected directory (#128047)
@mikaelholmen
[mentioned](https://github.com/llvm/llvm-project/pull/127098#discussion_r1962897888)
that the `-emit-llvm` argument isn't necessary for the `and-errors.hlsl`
test and may cause issues due to writing to the current (potentially
write-protected) directory.
This PR removes the `-emit-llvm` argument from clang in the RUN lines of
the test.
Added:
Modified:
clang/test/SemaHLSL/BuiltIns/and-errors.hlsl
Removed:
################################################################################
diff --git a/clang/test/SemaHLSL/BuiltIns/and-errors.hlsl b/clang/test/SemaHLSL/BuiltIns/and-errors.hlsl
index 0a99feb023d73..d9721140b9bf9 100644
--- a/clang/test/SemaHLSL/BuiltIns/and-errors.hlsl
+++ b/clang/test/SemaHLSL/BuiltIns/and-errors.hlsl
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -finclude-default-header -triple \
-// RUN: dxil-pc-shadermodel6.3-library %s \
-// RUN: -emit-llvm -O1 -verify
+// RUN: dxil-pc-shadermodel6.3-library %s -O1 -verify
bool test_too_few_arg(bool a) {
return __builtin_hlsl_and(a);
More information about the cfe-commits
mailing list