Hopefully fix uninitialized memory read in AArch64AsmParser found by MSan bootstrap bot

llvm-svn: 194818
This commit is contained in:
Alexey Samsonov 2013-11-15 15:49:30 +00:00
parent 6ae3980118
commit 0d4f1c51db
1 changed files with 5 additions and 5 deletions

View File

@ -1963,12 +1963,12 @@ bool AArch64AsmParser::TryParseVector(uint32_t &RegNum, SMLoc &RegEndLoc,
if (!IdentifyRegister(RegNum, RegEndLoc, Layout, LayoutLoc))
IsVector = false;
if (!AArch64MCRegisterClasses[AArch64::FPR64RegClassID].contains(RegNum) &&
!AArch64MCRegisterClasses[AArch64::FPR128RegClassID].contains(RegNum))
else if (!AArch64MCRegisterClasses[AArch64::FPR64RegClassID]
.contains(RegNum) &&
!AArch64MCRegisterClasses[AArch64::FPR128RegClassID]
.contains(RegNum))
IsVector = false;
if (Layout.size() == 0)
else if (Layout.size() == 0)
IsVector = false;
if (!IsVector)