1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add assertions

llvm-svn: 734
This commit is contained in:
Chris Lattner 2001-10-13 06:12:38 +00:00
parent a9747cdcb4
commit 8cf2a5b5c2

View File

@ -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) {