summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-28 02:26:04 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-28 02:26:04 +0000
commitc03a1083afd6b96f46fea4f07e21d3c5d15ddf57 (patch)
tree0d40ab6c4cd7732d836b0abdab8d7a01c66ec163 /clang/lib/Sema/SemaExprCXX.cpp
parentdd2fe7adb548e8d38e4a685287099ab79ca004be (diff)
downloadbcm5719-llvm-c03a1083afd6b96f46fea4f07e21d3c5d15ddf57.tar.gz
bcm5719-llvm-c03a1083afd6b96f46fea4f07e21d3c5d15ddf57.zip
Give OpaqueValueExpr a source location, because its source location
might be queried in places where we absolutely require a valid location (e.g., for template instantiation). Fixes some major brokenness in the use of __is_convertible_to. llvm-svn: 124465
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index cf2e10d531f..6ba18a54fd0 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -2531,7 +2531,7 @@ static bool EvaluateBinaryTypeTrait(Sema &Self, BinaryTypeTrait BTT,
LhsT = Self.Context.getRValueReferenceType(LhsT);
InitializedEntity To(InitializedEntity::InitializeTemporary(RhsT));
- OpaqueValueExpr From(LhsT.getNonLValueExprType(Self.Context),
+ OpaqueValueExpr From(KeyLoc, LhsT.getNonLValueExprType(Self.Context),
Expr::getValueKindForType(LhsT));
Expr *FromPtr = &From;
InitializationKind Kind(InitializationKind::CreateCopy(KeyLoc,
OpenPOWER on IntegriCloud