Skip to content
  • Richard Smith's avatar
    Split -fsanitize=bounds to -fsanitize=array-bounds (for the frontend-inserted · 6b53e224
    Richard Smith authored
    check using the ubsan runtime) and -fsanitize=local-bounds (for the middle-end
    check which inserts traps).
    
    Remove -fsanitize=local-bounds from -fsanitize=undefined. It does not produce
    useful diagnostics and has false positives (PR17635), and is not a good
    compromise position between UBSan's checks and ASan's checks.
    
    Map -fbounds-checking to -fsanitize=local-bounds to restore Clang's historical
    behavior for that flag.
    
    llvm-svn: 193205
    6b53e224
Loading