summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-10-10 18:58:13 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-10-10 18:58:13 +0000
commit769562a382407436963501230f822358f29e7b13 (patch)
tree44d480ccfc2be40b7baf83bfaca6d7abf8de535c /clang/lib/AST/Expr.cpp
parenta586eb2c70feaa90c1028c12c7484790daba4c94 (diff)
downloadbcm5719-llvm-769562a382407436963501230f822358f29e7b13.tar.gz
bcm5719-llvm-769562a382407436963501230f822358f29e7b13.zip
Bugfix for predefined expressions in dependent context.
This bug break compilation with precompiled headers and predefined expressions in dependent context. llvm-svn: 219525
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 8410bad88d9..bc5498ad9ac 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -457,7 +457,7 @@ PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FNTy, IdentType IT,
Loc(L), Type(IT), FnName(SL) {}
StringLiteral *PredefinedExpr::getFunctionName() {
- return cast<StringLiteral>(FnName);
+ return cast_or_null<StringLiteral>(FnName);
}
StringRef PredefinedExpr::getIdentTypeName(PredefinedExpr::IdentType IT) {
OpenPOWER on IntegriCloud