mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Initializers are not const even if the GV is.
llvm-svn: 805
This commit is contained in:
parent
ff0aa0fb39
commit
7de225b35d
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user