Forgot to check that debug information is supported.
[oota-llvm.git] / utils / TableGen / CodeEmitterGen.cpp
index 62df686ea28b5e37d1cf9b7fd7277ee083d349ac..ae4a6aa445b1ca0f80316202f0a61b2f0751f8e5 100644 (file)
@@ -191,7 +191,7 @@ void CodeEmitterGen::run(std::ostream &o) {
               gotOp = true;
             }
             
-            unsigned opMask = (1 << N) - 1;
+            unsigned opMask = ~0U >> (32-N);
             int opShift = beginVarBit - N + 1;
             opMask <<= opShift;
             opShift = beginInstBit - beginVarBit;