DescriptionFix a C++ violation.
Ice::Inst::NumberSentinel is defined within the Inst class definition:
class Inst {
...
static const InstNumberT NumberDeleted = -1;
static const InstNumberT NumberSentinel = 0;
...
};
Under some compilers/options, this causes a link error when passing NumberSentinel as a const T& argument.
(Another option would be to move the actual definitions into IceInst.cpp.)
BUG= none
R=jfb@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=ab8242c
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|