[LLVMdev] Invalid STOREATOMIC Record

David Meyer pdox at google.com
Sat Sep 17 13:00:49 PDT 2011


The second equality here: (in lib/Bitcode/Reader/BitcodeReader.cpp)

      AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+2]);
      if (Ordering == NotAtomic || Ordering == Release ||
          Ordering == AcquireRelease)
        return Error("Invalid STOREATOMIC record");

Is failing on this assembly, which was generated by Clang:

  store atomic i32 0, i32* @mutex release, align 4

Is this a typo or is there some reason why this assembly is invalid?

Thanks,
- pdox



More information about the llvm-dev mailing list