[llvm-commits] [llvm] r123990 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp unittests/ADT/TripleTest.cpp

Duncan Sands baldrick at free.fr
Mon Jan 24 01:56:25 PST 2011

Hi Renato,

> The bug (segfault) happened because Triple was reading a three-token
> triple (so the vector size was 3) and trying to re-create a four-token
> triple (by writing to the 4th element). Before adding GNU as
> environment, the bug was never there, but now that environment is not
> *always* invalid, the bug showed up.

I tested this code using input like "linux" (which gets transformed to
"--linux") which could be expected to have the same issue, which is what
makes me think that something more is going on.

Ciao, Duncan.

More information about the llvm-commits mailing list