From ecd7e61a1fe650f9faeab09526801af5faca5f68 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 27 Jan 2006 17:31:30 +0000 Subject: [PATCH] Fix build error that is apparently only a warning with some compilers. llvm-svn: 25686 --- llvm/lib/CodeGen/MachineDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp index 07faba1dfbfc..ab42886cb489 100644 --- a/llvm/lib/CodeGen/MachineDebugInfo.cpp +++ b/llvm/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(V)) { if (GV->hasInitializer() && isa(GV->getInitializer())) { ConstantArray *Init = cast(GV->getInitializer());