mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 16:31:04 +00:00
Add assertions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30bdaaa3fc
commit
16ddd02545
@ -36,9 +36,11 @@ public:
|
||||
//
|
||||
inline bool hasInitializer() const { return !Operands.empty(); }
|
||||
inline const ConstPoolVal *getInitializer() const {
|
||||
assert(hasInitializer() && "GV doesn't have initializer!");
|
||||
return (const ConstPoolVal*)Operands[0].get();
|
||||
}
|
||||
inline ConstPoolVal *getInitializer() {
|
||||
assert(hasInitializer() && "GV doesn't have initializer!");
|
||||
return (ConstPoolVal*)Operands[0].get();
|
||||
}
|
||||
inline void setInitializer(ConstPoolVal *CPV) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user