Skip to content

Commit cc0c899

Browse files
committed
[clang][CIR] Temporarily fix CIR codegen test on call. NFC
- MemoryEffectsAttr in MLIR LLVM dialect is out of sync with LLVM itself.
1 parent 00ef948 commit cc0c899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CIR/CodeGen/call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int f12(void) {
130130
// OGCG: %{{.+}} = call i32 @f10(i32 noundef 1) #[[ATTR0:.+]]
131131
// OGCG-NEXT: %{{.+}} = call i32 @f11(i32 noundef 2) #[[ATTR1:.+]]
132132

133-
// LLVM: attributes #[[ATTR0]] = { nounwind willreturn memory(read, errnomem: none) }
133+
// LLVM: attributes #[[ATTR0]] = { nounwind willreturn memory(read, errnomem: none, target_mem0: none, target_mem1: none) }
134134
// LLVM: attributes #[[ATTR1]] = { nounwind willreturn memory(none) }
135135

136136
// OGCG: attributes #[[ATTR0]] = { nounwind willreturn memory(read) }

0 commit comments

Comments
 (0)