From 90a84a33f61aeb025a69cabf5658008c67280248 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 16 Apr 2015 12:43:07 +0000 Subject: Make it obvious that we're iterating over a range of pointers. Found by -Wrange-loop-analysis. llvm-svn: 235090 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 0cb0bea..f1a7127 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -1724,7 +1724,7 @@ void CppWriter::printFunctionUses(const Function* F) { // initializers. if (GenerationType != GenFunction) { nl(Out) << "// Global Variable Definitions"; nl(Out); - for (const auto &GV : gvs) { + for (auto *GV : gvs) { if (GlobalVariable *Var = dyn_cast(GV)) printVariableBody(Var); } -- cgit v1.1