diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-06-19 18:37:11 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-06-19 18:37:11 +0000 |
commit | 7d715dfe6d66be257926f626df96a0e2bd38dc1f (patch) | |
tree | 3d034a039e81d42465bbf21eabebfddee5295ca8 /lib/Target/PTX/PTXAsmPrinter.cpp | |
parent | 9cfcc6c1e14f5dc85757223335156ac18acb9479 (diff) | |
download | external_llvm-7d715dfe6d66be257926f626df96a0e2bd38dc1f.zip external_llvm-7d715dfe6d66be257926f626df96a0e2bd38dc1f.tar.gz external_llvm-7d715dfe6d66be257926f626df96a0e2bd38dc1f.tar.bz2 |
Fix a FIXME by making GlobalVariable::getInitializer() return a
const Constant *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX/PTXAsmPrinter.cpp')
-rw-r--r-- | lib/Target/PTX/PTXAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PTX/PTXAsmPrinter.cpp b/lib/Target/PTX/PTXAsmPrinter.cpp index 1142144..df973fd 100644 --- a/lib/Target/PTX/PTXAsmPrinter.cpp +++ b/lib/Target/PTX/PTXAsmPrinter.cpp @@ -346,7 +346,7 @@ void PTXAsmPrinter::EmitVariableDeclaration(const GlobalVariable *gv) { if (gv->hasInitializer()) { - Constant *C = gv->getInitializer(); + const Constant *C = gv->getInitializer(); if (const ConstantArray *CA = dyn_cast<ConstantArray>(C)) { decl += " = {"; |