This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp | |
index 1bdad771a..c3ad37e12 100644 | |
--- a/clang/lib/AST/ExprConstant.cpp | |
+++ b/clang/lib/AST/ExprConstant.cpp | |
@@ -3602,6 +3602,11 @@ findSubobject(EvalInfo &Info, const Expr *E, const CompleteObject &Obj, | |
return handler.failed(); | |
} | |
+ bool IsAssignment = false; | |
+ if (auto *ASE = dyn_cast<CXXOperatorCallExpr>(E)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create your partition layout (using GPT) | |
# 1 - ESP (FAT32, 128M) | |
# 2 - Linux (luks, any size) | |
# Format your partitions | |
mkfs.fat -F32 /dev/sdx1 | |
cryptsetup luksFormat --key-size 512 --cipher aes-xts-plain64 /dev/sdx2 | |
# Open your luks partition | |
cryptsetup open /dev/sdx2 luks_root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <stdlib.h> | |
//Stub environment | |
struct Environment { | |
int GetRegister(int i) const { | |
printf("GetRegister(%d)\n", i); | |
return i; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰─❱ ./examples | |
DEBUG: '(embedded)' contains no JNI linkage | |
DEBUG: '(embedded)' contains no Agent linkage | |
WARNING: Neither JNI nor Agent hooks were found for library: '(embedded)'! | |
DEBUG: Created library: '(embedded)' | |
DEBUG: Registered library: '(embedded)' | |
terminate called after throwing an instance of 'std::runtime_error' | |
what(): FATAL: Tried to start JVM instance twice! | |
FATAL: Fatal error thrown on Jvm instance 'LPKrVcjBblSEfxKCiRGRXTmyUBFxugAc' with message: | |
Received fatal signal: Aborted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstdint> | |
#include <cstring> | |
#include <initializer_list> | |
#include <stdexcept> | |
#include "cx.h" | |
struct member_ptr_align_t { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void *reserved1; | |
jvmtiError (JNICALL *SetEventNotificationMode) (jvmtiEnv* env, jvmtiEventMode mode, jvmtiEvent event_type, jthread event_thread, ...); | |
void *reserved3; | |
jvmtiError (JNICALL *GetAllThreads) (jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr); | |
jvmtiError (JNICALL *SuspendThread) (jvmtiEnv* env, jthread thread); | |
jvmtiError (JNICALL *ResumeThread) (jvmtiEnv* env, jthread thread); | |
jvmtiError (JNICALL *StopThread) (jvmtiEnv* env, jthread thread, jobject exception); | |
jvmtiError (JNICALL *InterruptThread) (jvmtiEnv* env, jthread thread); | |
jvmtiError (JNICALL *GetThreadInfo) (jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); | |
jvmtiError (JNICALL *GetOwnedMonitorInfo) (jvmtiEnv* env, jthread thread, jint* owned_monitor_count_ptr, jobject** owned_monitors_ptr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**Pseudocode... | |
bestGame[] = null | |
worstGame[] = null | |
avgGuesses=0 | |
totalGuesses=0 | |
BEGIN_METHOD calculateGuessStatistics List<Integer[]> guessStatistics | |
bestGame = guessStatistics.get(0) | |
worstGame = guessStatistics.get(0) | |
I = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.Scanner; | |
import java.util.stream.IntStream; | |
public class GuessingGame { | |
public static void main(String[] args) { | |
System.out.println("Welcome to Matthew Barichello's guessing game!"); | |
/**The index of an <code>Integer[]</code> in the <code>List games</code> coincides with the game number. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**Imports the global input and output streams from <code>java.lang.System</code> so that they may be | |
* referenced within this file, without having to write out the canonical name each time they are needed. | |
*/ | |
import static java.lang.System.out; | |
import static java.lang.System.in; | |
//More convenient, considering the number of classes used out of the "java.util" package | |
import java.util.*; | |
public class Main { | |
//General purpose interface for defining a currency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include "assert.h" | |
//Forward declare templated class | |
template<typename T> class TestingStuff; | |
//Templated superclass | |
template<typename T> | |
class TestingStuff { |
NewerOlder