Subzero: Fix cmake build.
Also fixes a set of warnings that only show up for the cmake build.
BUG= none
R=jpp@chromium.org
Review URL: https://codereview.chromium.org/1208673003
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 43f8e9c..e4708f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,7 @@
-DALLOW_LLVM_IR_AS_INPUT=1
-DALLOW_DISABLE_IR_GEN=1
-DALLOW_MINIMAL_BUILD=0
+ -DINPUT_IS_TEXTUAL_BITCODE=0
)
if(PNACL_BROWSER_TRANSLATOR)
diff --git a/src/IceOperand.h b/src/IceOperand.h
index 786f51b..b43e2a8 100644
--- a/src/IceOperand.h
+++ b/src/IceOperand.h
@@ -81,6 +81,7 @@
protected:
Operand(OperandKind Kind, Type Ty) : Ty(Ty), Kind(Kind) {}
+ virtual ~Operand() = default;
const Type Ty;
const OperandKind Kind;