From 4d9f8527dbfbc998baf35eec868c9dec1f8d1224 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Fri, 4 Jun 2021 08:55:26 -0400 Subject: [PATCH] CUDA/HIP: Change device-use-host-var.cu's NOT "external" check to include variable name Otherwise it is causing one of our build jobs to fail, it is using "external" as directory, and NOT is failing because "external" is found in ModuleID. Differential Revision: https://reviews.llvm.org/D103658 --- clang/test/CodeGenCUDA/device-use-host-var.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGenCUDA/device-use-host-var.cu b/clang/test/CodeGenCUDA/device-use-host-var.cu index 1a504280e848..4d3f60c2e83c 100644 --- a/clang/test/CodeGenCUDA/device-use-host-var.cu +++ b/clang/test/CodeGenCUDA/device-use-host-var.cu @@ -65,7 +65,7 @@ const int var_host_only = 7; // NEG-NOT: @_ZN1BIiE1yE // NEG-NOT: @_Z1bIdE // NEG-NOT: @_ZL13var_host_only -// NEG-NOT: external +// NEG-NOT: {{^}}@{{.*}} = external // CHECK-LABEL: define{{.*}}@_Z7dev_funPiPPKi // CHECK: store i32 1