]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309818 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MachineLocation.h

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