https://bugs.llvm.org/show_bug.cgi?id=46113

            Bug ID: 46113
           Summary: Invalid profile triggers ControlHeightReduction
                    assertion failure
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: yik...@google.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

$ echo gibberish > a.txt
$ clang -fprofile-sample-use=a.txt -O3 test.cpp
error: a.txt: Could not open profile: Unrecognized sample profile encoding
format
Assertion failed: (PSI.hasProfileSummary() && "Empty PSI?"), function
shouldApply, file
llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp, line 449.

It would be nicer if this can be handled more gracefully.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to