From 1c11c833ab2b131e05eb558d5ee1b4f63992bead Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 2 Aug 2017 14:45:50 +0000 Subject: [PATCH] Assert that the offset in MachineLocation::set() is always 0. (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309818 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MachineLocation.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/MC/MachineLocation.h b/include/llvm/MC/MachineLocation.h index e81099d0825..94d752fc998 100644 --- a/include/llvm/MC/MachineLocation.h +++ b/include/llvm/MC/MachineLocation.h @@ -67,6 +67,7 @@ public: IsRegister = false; Register = R; Offset = O; + assert(O == 0 && "offset is expected to always be zero"); } }; -- 2.40.0