[llvm] r194818 - Hopefully fix uninitialized memory read in AArch64AsmParser found by MSan bootstrap bot
Alexey Samsonov
samsonov at google.com
Fri Nov 15 07:49:30 PST 2013
Author: samsonov
Date: Fri Nov 15 09:49:30 2013
New Revision: 194818
URL: http://llvm.org/viewvc/llvm-project?rev=194818&view=rev
Log:
Hopefully fix uninitialized memory read in AArch64AsmParser found by MSan bootstrap bot
Modified:
llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Modified: llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp?rev=194818&r1=194817&r2=194818&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp Fri Nov 15 09:49:30 2013
@@ -1963,12 +1963,12 @@ bool AArch64AsmParser::TryParseVector(ui
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)
More information about the llvm-commits
mailing list