llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Assertion failed:"Operand types in binary constant expression should match"

Open goussepi opened this issue 10 years ago • 4 comments

Bugzilla Link 28262
Resolution FIXED
Resolved on Jun 23, 2016 11:03
Version trunk
OS Windows NT
Attachments reproducible source file

Extended Description

clang version 3.9.0 Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\git\llvm\build\Debug\bin

SVN r273154 (20 June 2016).

$ clang -cc1 -std=c++11 "-triple" "x86_64-unknown-unknown" "-O2" -emit-llvm reduced.cpp

Assertion failed: C1->getType() == C2->getType() && "Operand types in binary constant expression should match", file C:\git\llvm\lib\IR\Constants.cpp, line 1740

The regression seems to have been caused by r270478.

The assertion is triggered during the loop unrolling phase.

goussepi avatar Jun 22 '16 14:06 goussepi

Should be fixed in r273562.

Yes works for me now thanks!

goussepi avatar Jun 23 '16 18:06 goussepi

Should be fixed in r273562.

llvmbot avatar Jun 23 '16 16:06 llvmbot

Thanks, I'll look into it!

llvmbot avatar Jun 23 '16 01:06 llvmbot

Adding Michael to CC as he is involved in this area of the compiler.

goussepi avatar Jun 22 '16 15:06 goussepi