]> granicus.if.org Git - clang/commit
Fix uninitialized value in AttributedTypeLoc.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Sun, 9 Mar 2014 16:21:03 +0000 (16:21 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Sun, 9 Mar 2014 16:21:03 +0000 (16:21 +0000)
commit5486a908329d92454315f0e75d24712854cf5bb0
treea4e7b3c48e141aedbb07db75e0ebcb28986b47e1
parente74395412dd09c3854905e824aef22998e4f881d
Fix uninitialized value in AttributedTypeLoc.

Clang might crash while reading the precompiled headers if
we don't initialize the AttrEnumOperandLoc properly.

This commit fixes the combination of string attribute
operand and enum operand.  Besides, this commit also adds
several assertions to avoid unexpected operand kind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203416 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp