From 7398622eedf45376656d6a95b775a6bdcd31eba5 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 2 Dec 2014 21:57:15 +0000 Subject: [PATCH] Make sure that the TargetOptions operator== is checking the full contents of the class. llvm-svn: 223159 --- llvm/include/llvm/Target/TargetOptions.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index 73014d8..9ab8242 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -288,6 +288,12 @@ inline bool operator==(const TargetOptions &LHS, ARE_EQUAL(TrapFuncName) && ARE_EQUAL(FloatABIType) && ARE_EQUAL(AllowFPOpFusion) && + ARE_EQUAL(JTType) && + ARE_EQUAL(FCFI) && + ARE_EQUAL(ThreadModel) && + ARE_EQUAL(CFIType) && + ARE_EQUAL(CFIEnforcing) && + ARE_EQUAL(CFIFuncName) && ARE_EQUAL(MCOptions); #undef ARE_EQUAL } -- 2.7.4