aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineDebugInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-27 17:31:30 +0000
committerChris Lattner <sabre@nondot.org>2006-01-27 17:31:30 +0000
commit22760af21f0012ba3dcdeb319ea55970f93389c5 (patch)
tree4442d1167720f8b5fdd778cf064bcea9af13eae0 /lib/CodeGen/MachineDebugInfo.cpp
parent1a05851a27f42ef2718d04119c616a7fecdffb32 (diff)
Fix build error that is apparently only a warning with some compilers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineDebugInfo.cpp')
-rw-r--r--lib/CodeGen/MachineDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp
index 07faba1dfb..ab42886cb4 100644
--- a/lib/CodeGen/MachineDebugInfo.cpp
+++ b/lib/CodeGen/MachineDebugInfo.cpp
@@ -62,7 +62,7 @@ getGlobalVariablesUsing(Module &M, const std::string &RootName) {
/// getStringValue - Turn an LLVM constant pointer that eventually points to a
/// global into a string value. Return an empty string if we can't do it.
///
-const static std::string getStringValue(Value *V, unsigned Offset = 0) {
+static const std::string getStringValue(Value *V, unsigned Offset = 0) {
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) {
if (GV->hasInitializer() && isa<ConstantArray>(GV->getInitializer())) {
ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());