storeinst ctor takes isvolatile before alignment. With this, 176.gcc roundtrips
authorChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 03:57:30 +0000 (03:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 03:57:30 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36738 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp

index f546bb4891ba58aca68e5f4ad1c87358cc632843..cca8a51e10a14da0ca70d4a4b6e7367cc797232d 100644 (file)
@@ -1423,7 +1423,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
       Value *Ptr = getFnValueByID(Record[2], OpTy);
       if (!OpTy || !Op || !Ptr)
         return Error("Invalid STORE record");
-      I = new StoreInst(Op, Ptr, (1 << Record[3]) >> 1, Record[4]);
+      I = new StoreInst(Op, Ptr, Record[4], (1 << Record[3]) >> 1);
       break;
     }
     case bitc::FUNC_CODE_INST_CALL: { // CALL: [cc, fnty, fnid, arg0, arg1...]