From 49d26d2817180ccde605c987f79cd3a5b57639cd Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 30 Mar 2012 07:09:50 +0000 Subject: Do the static-locals thing properly in the face of unions and other things which might mess with the variable's type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153733 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 5719afb612..79247c6d47 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -733,7 +733,7 @@ public: llvm::Constant *EmitNullConstantForBase(const CXXRecordDecl *Record); /// Error - Emit a general error that something can't be done. - void Error(SourceLocation loc, StringRef error); + void Error(SourceLocation loc, const Twine &error); /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified stmt yet. -- cgit v1.2.3