OSDN Git Service

Fix bug introduced by CL 561883002.
authorKarl Schimpf <kschimpf@google.com>
Wed, 10 Sep 2014 22:02:08 +0000 (15:02 -0700)
committerKarl Schimpf <kschimpf@google.com>
Wed, 10 Sep 2014 22:02:08 +0000 (15:02 -0700)
Fixes call to extractElement.

BUG= None
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/562783002

src/PNaClTranslator.cpp

index c83898d..b05b6be 100644 (file)
@@ -1631,10 +1631,7 @@ void FunctionParser::ProcessRecord() {
       return;
     Ice::Operand *Value = getRelativeOperand(Values[1]);
     unsigned Alignment;
-    if (!extractAlignment("Store", Values[2], Alignment)) {
-      // TODO(kschimpf) Remove error recovery once implementation complete.
-      Alignment = 1;
-    }
+    extractAlignment("Store", Values[2], Alignment);
     if (!isValidLoadStoreAlignment(Alignment, Value->getType(), "Store"))
       return;
     Inst = Ice::InstStore::create(Func, Value, Address, Alignment);