[all-commits] [llvm/llvm-project] daab81: Replace "CHECK-NOT: #{{.*}}" with same-line positi...
    Ryan Prichard via All-commits 
    all-commits at lists.llvm.org
       
    Thu Aug  5 21:55:46 PDT 2021
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: daab81cda18a1e33aa8973ee34589960b4382f25
      https://github.com/llvm/llvm-project/commit/daab81cda18a1e33aa8973ee34589960b4382f25
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)
  Changed paths:
    M llvm/test/Assembler/2008-09-02-FunctionNotes.ll
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll
  Log Message:
  -----------
  Replace "CHECK-NOT: #{{.*}}" with same-line positive checks. NFC.
The intent of the negative #{{.*}} checks is to verify that the line
declaring/defining a function has no attribute, but they could restrict
later function declarations instead.
The 2008-09-02-FunctionNotes.ll check had allowed @fn3 to have an
attribute, because there is only a single "define void @fn3()" in the
output.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D107614
    
    
More information about the All-commits
mailing list