diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 18:58:13 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 18:58:13 +0000 |
commit | 769562a382407436963501230f822358f29e7b13 (patch) | |
tree | 44d480ccfc2be40b7baf83bfaca6d7abf8de535c /clang/lib/AST/Expr.cpp | |
parent | a586eb2c70feaa90c1028c12c7484790daba4c94 (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |