[LLVMbugs] [Bug 6807] llvm::SimplifyFortifiedLibCalls::fold crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 13 09:27:31 PDT 2010


Duncan Sands <baldrick at free.fr> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #9 from Duncan Sands <baldrick at free.fr> 2010-04-13 11:27:31 CDT ---
The original testcase is still failing.  I will attach unreduced IR in a
In the meantime, here is a new reduced testcase that crashes llc in the same

; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
target triple = "x86_64-unknown-linux-gnu"

module asm "\09.ident\09\22GCC: (GNU) 4.6.0 20100413 (experimental) LLVM:

define i32 @stpncpy(i8* %__dest, i8* %__src, i64 %__n) nounwind {
  %0 = tail call i64 @llvm.objectsize.i64(i8* %__dest, i1 false) ; <i64>
  br i1 undef, label %return, label %"5"

"5":                                              ; preds = %entry
  %1 = tail call i32 (...)* @__stpncpy_chk(i8* %__dest, i8* %__src, i64 %__n,
i64 %0) nounwind ; <i32> [#uses=1]
  ret i32 %1

return:                                           ; preds = %entry
  ret i32 undef

declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readonly

declare i32 @__stpncpy_chk(...)

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list