File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3617,9 +3617,11 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF,
3617
3617
.addAttribute (llvm::Attribute::NoUnwind);
3618
3618
}
3619
3619
B.addUWTableAttr (llvm::UWTableKind::Default);
3620
- // Add more precise attributes to recoverable ubsan handlers for better optimizations.
3620
+ // Add more precise attributes to recoverable ubsan handlers for better
3621
+ // optimizations.
3621
3622
if (CGF.CGM .getCodeGenOpts ().OptimizationLevel > 0 && MayReturn) {
3622
- B.addMemoryAttr (llvm::MemoryEffects::argMemOnly (llvm::ModRefInfo::Ref) | llvm::MemoryEffects::inaccessibleMemOnly ());
3623
+ B.addMemoryAttr (llvm::MemoryEffects::argMemOnly (llvm::ModRefInfo::Ref) |
3624
+ llvm::MemoryEffects::inaccessibleMemOnly ());
3623
3625
// If the handler does not return, we must hit a undefined behavior.
3624
3626
B.addAttribute (llvm::Attribute::WillReturn);
3625
3627
}
You can’t perform that action at this time.
0 commit comments