Assert that the offset in MachineLocation::set() is always 0. (NFC)
authorAdrian Prantl <aprantl@apple.com>
Wed, 2 Aug 2017 14:45:50 +0000 (14:45 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 2 Aug 2017 14:45:50 +0000 (14:45 +0000)
llvm-svn: 309818

llvm/include/llvm/MC/MachineLocation.h

index e81099d..94d752f 100644 (file)
@@ -67,6 +67,7 @@ public:
     IsRegister = false;
     Register = R;
     Offset = O;
+    assert(O == 0 && "offset is expected to always be zero");
   }
 };