[llvm-bugs] [Bug 35123] clang crashes with "-mllvm -enable-newgvn": Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 30 09:42:39 PDT 2017


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

Davide Italiano <davide at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Davide Italiano <davide at freebsd.org> ---
Can't repro on ToT.

$ ./clang x.c -Os
x.c:9:14: warning: control reaches end of non-void function [-Wreturn-type]
char(fn1)() {}
             ^
x.c:17:18: warning: use of logical '&&' with constant operand
[-Wconstant-logical-operand]
      c = (p1.f4 && 7) > (e && f || j);
                 ^  ~
x.c:17:18: note: use '&' for a bitwise operation
      c = (p1.f4 && 7) > (e && f || j);
                 ^~
                 &
x.c:17:18: note: remove constant to silence this warning
      c = (p1.f4 && 7) > (e && f || j);
                ~^~~~
x.c:17:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
      c = (p1.f4 && 7) > (e && f || j);
                          ~~^~~~ ~~
x.c:17:29: note: place parentheses around the '&&' expression to silence this
warning
      c = (p1.f4 && 7) > (e && f || j);
                            ^
                          (     )
x.c:26:5: warning: expression result unused [-Wunused-value]
  g.f0;
  ~ ^~
4 warnings generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171030/bf86b83d/attachment.html>


More information about the llvm-bugs mailing list