summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-10-09 08:45:04 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-10-09 08:45:04 +0000
commitec4747802ae99edea83b3199df52be5c1f43f048 (patch)
tree0ab9f13bad64139844298485d5f2e3a62559720d /clang/lib/CodeGen/CodeGenModule.h
parenta9ee5c06f4c7d6e03aafe2b730f505f901694987 (diff)
downloadbcm5719-llvm-ec4747802ae99edea83b3199df52be5c1f43f048.tar.gz
bcm5719-llvm-ec4747802ae99edea83b3199df52be5c1f43f048.zip
Fix for bug http://llvm.org/PR17427.
Assertion failed: "Computed __func__ length differs from type!" Reworked PredefinedExpr representation with internal StringLiteral field for function declaration. Differential Revision: http://reviews.llvm.org/D5365 llvm-svn: 219393
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 955f665f86c..665a7a589f8 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -785,7 +785,8 @@ public:
/// Return a pointer to a constant array for the given string literal.
llvm::GlobalVariable *
- GetAddrOfConstantStringFromLiteral(const StringLiteral *S);
+ GetAddrOfConstantStringFromLiteral(const StringLiteral *S,
+ StringRef Name = ".str");
/// Return a pointer to a constant array for the given ObjCEncodeExpr node.
llvm::GlobalVariable *
OpenPOWER on IntegriCloud