diff options
author | Shih-wei Liao <sliao@google.com> | 2010-09-10 17:40:53 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-09-11 11:59:16 -0700 |
commit | f52a620440fa62257dfdcf2583f0f9df5b855c76 (patch) | |
tree | d0d59c14dd211f224261ee4afbe740111fbfa0aa /slang_rs_export_var.cpp | |
parent | 0877f0557e5c406fc8ff33c928a8ae969a5f4905 (diff) | |
download | android_frameworks_compile_slang-f52a620440fa62257dfdcf2583f0f9df5b855c76.tar.gz android_frameworks_compile_slang-f52a620440fa62257dfdcf2583f0f9df5b855c76.tar.bz2 android_frameworks_compile_slang-f52a620440fa62257dfdcf2583f0f9df5b855c76.zip |
Apply changes on slang such that it can work with LLVM/Clang upstream r112364/r112367.
Change-Id: If38da28502a6111b855105c2fceb23fdb0caefa4
Diffstat (limited to 'slang_rs_export_var.cpp')
-rw-r--r-- | slang_rs_export_var.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slang_rs_export_var.cpp b/slang_rs_export_var.cpp index 20f4911..749d6ad 100644 --- a/slang_rs_export_var.cpp +++ b/slang_rs_export_var.cpp @@ -20,14 +20,14 @@ RSExportVar::RSExportVar(RSContext* Context, const VarDecl* VD, const RSExportTy switch(ET->getClass()) { case RSExportType::ExportClassPrimitive: case RSExportType::ExportClassVector: - Initializer->EvaluateAsAny(mInit, *Context->getASTContext()); + Initializer->Evaluate(mInit, *Context->getASTContext()); break; case RSExportType::ExportClassPointer: if(Initializer->isNullPointerConstant(*Context->getASTContext(), Expr::NPC_ValueDependentIsNotNull)) mInit.Val = APValue(llvm::APSInt(1)); else - Initializer->EvaluateAsAny(mInit, *Context->getASTContext()); + Initializer->Evaluate(mInit, *Context->getASTContext()); break; case RSExportType::ExportClassRecord: |