[clang] bd08f41 - [clang-repl] Disable exception unittest on AIX.

Sunho Kim via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 06:49:02 PDT 2022


Author: Sunho Kim
Date: 2022-07-28T22:48:51+09:00
New Revision: bd08f413c089da5a56438cc8902f60df91a08a66

URL: https://github.com/llvm/llvm-project/commit/bd08f413c089da5a56438cc8902f60df91a08a66
DIFF: https://github.com/llvm/llvm-project/commit/bd08f413c089da5a56438cc8902f60df91a08a66.diff

LOG: [clang-repl] Disable exception unittest on AIX.

AIX platform was not supported but it was not explicitly checked in exception test as it was excluded by isPPC() check.

Added: 
    

Modified: 
    clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
index a1dbcfa3410f8..7a5f07e25bc6f 100644
--- a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
+++ b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
@@ -99,6 +99,10 @@ extern "C" int throw_exception() {
   const clang::CompilerInstance *CI = Interp->getCompilerInstance();
   const llvm::Triple &Triple = CI->getASTContext().getTargetInfo().getTriple();
 
+  // AIX is unsupported.
+  if (Triple.isOSAIX())
+    return;
+
   // FIXME: ARM fails due to `Not implemented relocation type!`
   if (Triple.isARM())
     return;


        


More information about the cfe-commits mailing list