[llvm-bugs] [Bug 28132] New: Clang fails on Windows with enabled exceptions during loop unrolling
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 14 13:43:49 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28132
Bug ID: 28132
Summary: Clang fails on Windows with enabled exceptions during
loop unrolling
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: adamf88 at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 16544
--> https://llvm.org/bugs/attachment.cgi?id=16544&action=edit
Compilation data
If I try to compile this program with exceptions enabled and -O2 then I get
error message:
Assertion failed: L->isLoopSimplifyForm() && "Must put loop into normal form
fir
st.", file
D:\src\llvm_package_272293\llvm\lib\Transforms\Scalar\LoopUnrollPass.
cpp, line 363
compilation script:
clang-cl /EHsc main.cpp -O2 /link
Source code (also in attachment):
#include <vector>
using namespace std;
struct Block
{
int colorA;
int colorB;
};
int main()
{
while (true)
{
vector<Block> blocks;
for (int i = 0; i < 6; i++) {
blocks.push_back(Block());
}
throw Block();
}
}
In attachment I added also preprocessed source and whole compilation output.
Tested also on most recent available revision @272572
--
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/20160614/9b5f9699/attachment.html>
More information about the llvm-bugs
mailing list