Skip to content

Commit ca45b63

Browse files
committed
[Clang][CodeGen] Remove mustprogress
1 parent 9aba004 commit ca45b63

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,9 +3661,6 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF,
36613661
ME |= llvm::MemoryEffects::readOnly();
36623662
B.addMemoryAttr(ME);
36633663
}
3664-
// If the handler does not return, it must interact with the environment in
3665-
// an observable way.
3666-
B.addAttribute(llvm::Attribute::MustProgress);
36673664
}
36683665

36693666
llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction(

clang/test/CodeGen/ubsan-attr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int test_unreachable() {
6767

6868
//.
6969
// RECOVER: attributes #[[ATTR0]] = { mustprogress nounwind memory(read, argmem: readwrite, inaccessiblemem: readwrite) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
70-
// RECOVER: attributes #[[ATTR1:[0-9]+]] = { mustprogress memory(argmem: read, inaccessiblemem: readwrite) uwtable }
70+
// RECOVER: attributes #[[ATTR1:[0-9]+]] = { memory(argmem: read, inaccessiblemem: readwrite) uwtable }
7171
// RECOVER: attributes #[[ATTR2]] = { mustprogress noreturn nounwind memory(read, argmem: none, inaccessiblemem: readwrite) "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-features"="+cx8,+mmx,+sse,+sse2,+x87" }
7272
// RECOVER: attributes #[[ATTR3]] = { nomerge nounwind }
7373
//.

0 commit comments

Comments
 (0)