[llvm-bugs] [Bug 45426] New: Assertion `getNumOperands() == 2 && "Must be binary operator?"' failed
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Apr 4 00:22:00 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45426
Bug ID: 45426
Summary: Assertion `getNumOperands() == 2 && "Must be binary
operator?"' failed
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: balarishi.bhogadi at amd.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
The below issue was not seen before October, 2019.
$ cat test.c
int a[], b;
float *c;
int main() {
return -(*c = &b != a);
}
$ clang -c test.c
test.c:1:5: warning: tentative array definition assumed to have one element
int a[], b;
^
clang: /home/compiler/llvm-project/llvm/lib/IR/Constants.cpp:1365:
llvm::Constant*
llvm::ConstantExpr::getWithOperands(llvm::ArrayRef<llvm::Constant*>,
llvm::Type*, bool, llvm::Type*) const: Assertion `getNumOperands() == 2 &&
"Must be binary operator?"' failed.
--
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/20200404/f29c560e/attachment.html>
More information about the llvm-bugs
mailing list