Initializers are not const even if the GV is.

llvm-svn: 805
This commit is contained in:
Chris Lattner 2001-10-14 23:24:46 +00:00
parent d631165a45
commit 004b85f9c0
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ public:
// an initializer is specified.
//
inline bool hasInitializer() const { return !Operands.empty(); }
inline const ConstPoolVal *getInitializer() const {
inline ConstPoolVal *getInitializer() const {
assert(hasInitializer() && "GV doesn't have initializer!");
return (const ConstPoolVal*)Operands[0].get();
return (ConstPoolVal*)Operands[0].get();
}
inline ConstPoolVal *getInitializer() {
assert(hasInitializer() && "GV doesn't have initializer!");