aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-03-30 07:09:50 +0000
committerJohn McCall <rjmccall@apple.com>2012-03-30 07:09:50 +0000
commit49d26d2817180ccde605c987f79cd3a5b57639cd (patch)
treee300661d68dad6d9ccfb244cfa16a59be22944d9 /lib/CodeGen/CodeGenModule.h
parent5aeaca3fa755cddba583842e7a0c3e168bf71b4d (diff)
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h2
1 files changed, 1 insertions, 1 deletions
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.